56 lines
1.1 KiB
YAML
56 lines
1.1 KiB
YAML
version: "3.4"
|
|
|
|
|
|
services:
|
|
|
|
b-jokes-nginx:
|
|
image: mathwave/sprint-repo:b-jokes-nginx
|
|
networks:
|
|
- b-jokes-net
|
|
- sprint-nginx
|
|
deploy:
|
|
mode: replicated
|
|
restart_policy:
|
|
condition: any
|
|
update_config:
|
|
parallelism: 1
|
|
order: start-first
|
|
|
|
api:
|
|
image: mathwave/sprint-repo:b-jokes
|
|
networks:
|
|
- b-jokes-net
|
|
environment:
|
|
MONGO_HOST: "mongo.sprinthub.ru"
|
|
MONGO_PASSWORD: $MONGO_PASSWORD_PROD
|
|
DEBUG: "false"
|
|
command: api
|
|
deploy:
|
|
mode: replicated
|
|
restart_policy:
|
|
condition: any
|
|
update_config:
|
|
parallelism: 1
|
|
order: start-first
|
|
|
|
poll:
|
|
image: mathwave/sprint-repo:b-jokes
|
|
environment:
|
|
MONGO_HOST: "mongo.sprinthub.ru"
|
|
MONGO_PASSWORD: $MONGO_PASSWORD_PROD
|
|
DEBUG: "false"
|
|
command: poll
|
|
deploy:
|
|
mode: replicated
|
|
restart_policy:
|
|
condition: any
|
|
update_config:
|
|
parallelism: 1
|
|
order: start-first
|
|
|
|
networks:
|
|
b-jokes-net:
|
|
driver: overlay
|
|
sprint-nginx:
|
|
external: true
|