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: variables:
PORT: 80 PORT: 80
script: script:
- docker-compose up -d - docker-compose up -d
deploy-prod: deploy-prod:
stage: deploy-prod stage: deploy-prod

View File

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