web
This commit is contained in:
parent
c43cf363d5
commit
fde955bfcd
@ -76,12 +76,17 @@ services:
|
||||
REDIS_HOST: "redis.develop.sprinthub.ru"
|
||||
RABBIT_PASSWORD: $RABBITMQ_PASSWORD_DEV
|
||||
REDIS_PASSWORD: $REDIS_PASSWORD_DEV
|
||||
DB_PASSWORD: $DB_PASSWORD_DEV
|
||||
DEBUG: "true"
|
||||
TELEGRAM_TOKEN: $TELEGRAM_TOKEN_DEV
|
||||
command: sh -c "./manage.py collectstatic --noinput && ./manage.py runserver 0.0.0.0:8000 --noreload --insecure"
|
||||
DB_PASSWORD: $DB_PASSWORD
|
||||
DEBUG: $DEBUG
|
||||
TELEGRAM_TOKEN: $TELEGRAM_TOKEN
|
||||
VK_SERVICE_TOKEN: $VK_SERVICE_TOKEN
|
||||
volumes:
|
||||
- /sprint-data/static:/usr/src/app/static
|
||||
command: ./manage.py runserver 0.0.0.0:8000 --noreload --insecure
|
||||
deploy:
|
||||
mode: replicated
|
||||
placement:
|
||||
constraints: [node.role == manager]
|
||||
restart_policy:
|
||||
condition: any
|
||||
update_config:
|
||||
|
@ -104,14 +104,15 @@ services:
|
||||
RABBIT_PASSWORD: $RABBITMQ_PASSWORD_PROD
|
||||
REDIS_PASSWORD: $REDIS_PASSWORD_PROD
|
||||
DB_PASSWORD: $DB_PASSWORD
|
||||
DEBUG: "false"
|
||||
TELEGRAM_TOKEN: $TELEGRAM_TOKEN
|
||||
VK_SERVICE_TOKEN: $VK_SERVICE_TOKEN
|
||||
SENTRY_TOKEN: $SENTRY_TOKEN
|
||||
command: sh -c "./manage.py collectstatic --noinput && ./manage.py runserver 0.0.0.0:8000 --noreload --insecure"
|
||||
volumes:
|
||||
- /sprint-data/static:/usr/src/app/static
|
||||
command: ./manage.py runserver 0.0.0.0:8000 --noreload --insecure
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints: [node.role == manager]
|
||||
restart_policy:
|
||||
condition: any
|
||||
update_config:
|
||||
|
Loading…
Reference in New Issue
Block a user