This commit is contained in:
Egor Matveev 2021-11-05 20:44:13 +03:00
parent ef0fdab633
commit fce56a23b8
2 changed files with 4 additions and 2 deletions

View File

@ -24,7 +24,7 @@ deploy-dev:
variables:
PORT: 80
script:
- docker-compose up -d
- docker-compose up -d
deploy-prod:
stage: deploy-prod

View File

@ -20,9 +20,11 @@ services:
web:
image: sprint
restart: always
environment:
PORT: $PORT
command: scripts/runserver.sh
ports:
- "8000:8000"
- "8000:$PORT"
volumes:
- /sprint-data/data:/usr/src/app/data
- /sprint-data/media:/usr/src/app/media