services
This commit is contained in:
parent
261b0d34df
commit
0925aac86b
@ -21,26 +21,6 @@ services:
|
|||||||
parallelism: 1
|
parallelism: 1
|
||||||
order: start-first
|
order: start-first
|
||||||
|
|
||||||
migrations:
|
|
||||||
image: mathwave/sprint-repo:sprint
|
|
||||||
command: ./manage.py migrate
|
|
||||||
networks:
|
|
||||||
- net
|
|
||||||
environment:
|
|
||||||
DB_HOST: "pg.develop.sprinthub.ru"
|
|
||||||
FS_HOST: "storage"
|
|
||||||
RABBIT_HOST: "rabbitmq.develop.sprinthub.ru"
|
|
||||||
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
|
|
||||||
deploy:
|
|
||||||
mode: replicated
|
|
||||||
restart_policy:
|
|
||||||
condition: on-failure
|
|
||||||
|
|
||||||
web:
|
web:
|
||||||
image: mathwave/sprint-repo:sprint
|
image: mathwave/sprint-repo:sprint
|
||||||
networks:
|
networks:
|
||||||
@ -56,7 +36,7 @@ services:
|
|||||||
DEBUG: "true"
|
DEBUG: "true"
|
||||||
TELEGRAM_TOKEN: $TELEGRAM_TOKEN
|
TELEGRAM_TOKEN: $TELEGRAM_TOKEN
|
||||||
VK_SERVICE_TOKEN: $VK_SERVICE_TOKEN
|
VK_SERVICE_TOKEN: $VK_SERVICE_TOKEN
|
||||||
command: sh -c "./manage.py collectstatic --noinput && ./manage.py runserver 0.0.0.0:8000 --noreload --insecure"
|
command: ./run.sh
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
restart_policy:
|
restart_policy:
|
||||||
@ -236,26 +216,6 @@ services:
|
|||||||
parallelism: 1
|
parallelism: 1
|
||||||
order: start-first
|
order: start-first
|
||||||
|
|
||||||
apply-languages:
|
|
||||||
image: mathwave/sprint-repo:sprint
|
|
||||||
networks:
|
|
||||||
- net
|
|
||||||
command: ./manage.py apply_languages
|
|
||||||
environment:
|
|
||||||
DB_HOST: "pg.develop.sprinthub.ru"
|
|
||||||
FS_HOST: "storage"
|
|
||||||
RABBIT_HOST: "rabbitmq.develop.sprinthub.ru"
|
|
||||||
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
|
|
||||||
deploy:
|
|
||||||
mode: replicated
|
|
||||||
restart_policy:
|
|
||||||
condition: on-failure
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
net:
|
net:
|
||||||
driver: overlay
|
driver: overlay
|
||||||
|
@ -49,49 +49,6 @@ services:
|
|||||||
parallelism: 1
|
parallelism: 1
|
||||||
order: start-first
|
order: start-first
|
||||||
|
|
||||||
migrations:
|
|
||||||
image: mathwave/sprint-repo:sprint
|
|
||||||
command: ./manage.py migrate
|
|
||||||
networks:
|
|
||||||
- net
|
|
||||||
environment:
|
|
||||||
DB_HOST: "pg.sprinthub.ru"
|
|
||||||
FS_HOST: "storage"
|
|
||||||
RABBIT_HOST: "rabbitmq.sprinthub.ru"
|
|
||||||
REDIS_HOST: "redis.sprinthub.ru"
|
|
||||||
RABBIT_PASSWORD: $RABBITMQ_PASSWORD_PROD
|
|
||||||
REDIS_PASSWORD: $REDIS_PASSWORD_PROD
|
|
||||||
DB_PASSWORD: $DB_PASSWORD
|
|
||||||
DEBUG: "false"
|
|
||||||
TELEGRAM_TOKEN: $TELEGRAM_TOKEN
|
|
||||||
SENTRY_TOKEN: $SENTRY_TOKEN
|
|
||||||
deploy:
|
|
||||||
mode: replicated
|
|
||||||
restart_policy:
|
|
||||||
condition: on-failure
|
|
||||||
|
|
||||||
apply-languages:
|
|
||||||
image: mathwave/sprint-repo:sprint
|
|
||||||
networks:
|
|
||||||
- net
|
|
||||||
command: ./manage.py apply_languages
|
|
||||||
environment:
|
|
||||||
DB_HOST: "pg.sprinthub.ru"
|
|
||||||
FS_HOST: "storage"
|
|
||||||
RABBIT_HOST: "rabbitmq.sprinthub.ru"
|
|
||||||
REDIS_HOST: "redis.sprinthub.ru"
|
|
||||||
RABBIT_PASSWORD: $RABBITMQ_PASSWORD_PROD
|
|
||||||
REDIS_PASSWORD: $REDIS_PASSWORD_PROD
|
|
||||||
DB_PASSWORD: $DB_PASSWORD
|
|
||||||
DEBUG: "false"
|
|
||||||
TELEGRAM_TOKEN: $TELEGRAM_TOKEN
|
|
||||||
SENTRY_TOKEN: $SENTRY_TOKEN
|
|
||||||
deploy:
|
|
||||||
mode: replicated
|
|
||||||
replicas: 1
|
|
||||||
restart_policy:
|
|
||||||
condition: on-failure
|
|
||||||
|
|
||||||
web:
|
web:
|
||||||
image: mathwave/sprint-repo:sprint
|
image: mathwave/sprint-repo:sprint
|
||||||
networks:
|
networks:
|
||||||
@ -107,7 +64,7 @@ services:
|
|||||||
DEBUG: "false"
|
DEBUG: "false"
|
||||||
TELEGRAM_TOKEN: $TELEGRAM_TOKEN
|
TELEGRAM_TOKEN: $TELEGRAM_TOKEN
|
||||||
VK_SERVICE_TOKEN: $VK_SERVICE_TOKEN
|
VK_SERVICE_TOKEN: $VK_SERVICE_TOKEN
|
||||||
command: sh -c "./manage.py collectstatic --noinput && ./manage.py runserver 0.0.0.0:8000 --noreload --insecure"
|
command: ./run.sh
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
placement:
|
placement:
|
||||||
|
Loading…
Reference in New Issue
Block a user