Skip to content

Commit

Permalink
Use prod docker compose file
Browse files Browse the repository at this point in the history
So that there's no volume maintained
  • Loading branch information
komali2 committed Jul 4, 2023
1 parent afbbef7 commit 603de8d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ jobs:
- name: Tear down old docker
run: ssh -p 3732 "${SSH_USERNAME}"@"${SSH_HOST}" "cd src/game-remix-guesser-backend && docker compose down"
- name: Start up new docker
run: ssh -p 3732 "${SSH_USERNAME}"@"${SSH_HOST}" "cd src/game-remix-guesser-backend && docker compose up -d"
run: ssh -p 3732 "${SSH_USERNAME}"@"${SSH_HOST}" "cd src/game-remix-guesser-backend && docker compose -f docker-compose.prod.yml up -d"
21 changes: 21 additions & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: '3.8'

services:
api:
build:
context: ./
ports:
- 8000:8000
env_file:
- .env
depends_on:
- psqldbgame

psqldbgame:
image: postgres
container_name: "psqldbgame"
restart: always
ports:
- 3306:5432
env_file:
- .env

0 comments on commit 603de8d

Please sign in to comment.