Skip to content

Commit

Permalink
Update Docker version
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r committed Sep 4, 2024
1 parent f6c7039 commit 7acf0e3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/deploy/staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@

- name: Stop Services
shell:
cmd: 'docker-compose rm --stop --force'
cmd: 'docker compose rm --stop --force'

- name: Update Images
shell:
cmd: 'docker-compose pull'
cmd: 'docker compose pull'

- name: Start Services
shell:
cmd: 'docker-compose up -d'
cmd: 'docker compose up -d'
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
build:
@docker compose build
@CMD="poetry install" $(MAKE) run-backend-command
@CMD="poetry install --no-root" $(MAKE) run-backend-command
@CMD="poetry run python manage.py migrate" $(MAKE) run-backend-command

collect-static:
Expand Down
9 changes: 5 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ services:
backend:
container_name: nest-backend
command: >
bash -c
'poetry install --no-root &&
poetry run python manage.py migrate &&
poetry run python manage.py runserver 0.0.0.0:8000'
bash -c '
poetry install --no-root &&
poetry run python manage.py migrate &&
poetry run python manage.py runserver 0.0.0.0:8000
'
build:
context: ./backend
dockerfile: Dockerfile.local
Expand Down

0 comments on commit 7acf0e3

Please sign in to comment.