Обновить docker-compose-prod.yml
Это Сеня комитит, честно
This commit is contained in:
parent
71ffa2823a
commit
cfbd90c0f3
|
@ -18,11 +18,11 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
rabbitmq: *healthy-dependency
|
rabbitmq: *healthy-dependency
|
||||||
env_file: &backend-env-files
|
env_file: &backend-env-files
|
||||||
- .env/prod/pg
|
- .env/dev/pg
|
||||||
- .env/prod/back
|
- .env/dev/back
|
||||||
- .env/prod/rmq
|
- .env/dev/rmq
|
||||||
- .env/prod/bot_token
|
- .env/dev/bot_token
|
||||||
- .env/prod/web
|
- .env/dev/web
|
||||||
|
|
||||||
bot:
|
bot:
|
||||||
build: ./bot
|
build: ./bot
|
||||||
|
@ -31,9 +31,9 @@ services:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
batcher: *started-dependency
|
batcher: *started-dependency
|
||||||
env_file:
|
env_file:
|
||||||
- .env/prod/bot
|
- .env/dev/bot
|
||||||
- .env/prod/bot_token
|
- .env/dev/bot_token
|
||||||
- .env/prod/web
|
- .env/dev/web
|
||||||
command: /app/scripts/prod.sh
|
command: /app/scripts/prod.sh
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- db_data:/var/lib/postgresql/data
|
- db_data:/var/lib/postgresql/data
|
||||||
env_file:
|
env_file:
|
||||||
- .env/prod/pg
|
- .env/dev/pg
|
||||||
user: postgres
|
user: postgres
|
||||||
healthcheck: &pg-healthcheck
|
healthcheck: &pg-healthcheck
|
||||||
test: [ "CMD-SHELL", "pg_isready" ]
|
test: [ "CMD-SHELL", "pg_isready" ]
|
||||||
|
@ -77,7 +77,7 @@ services:
|
||||||
container_name: 'rabbitmq'
|
container_name: 'rabbitmq'
|
||||||
image: 'rabbitmq:3-management-alpine'
|
image: 'rabbitmq:3-management-alpine'
|
||||||
env_file:
|
env_file:
|
||||||
- .env/prod/rmq
|
- .env/dev/rmq
|
||||||
healthcheck:
|
healthcheck:
|
||||||
<<: *pg-healthcheck
|
<<: *pg-healthcheck
|
||||||
test: rabbitmq-diagnostics -q ping
|
test: rabbitmq-diagnostics -q ping
|
||||||
|
@ -90,14 +90,14 @@ services:
|
||||||
batcher-postgres: *healthy-dependency
|
batcher-postgres: *healthy-dependency
|
||||||
rabbitmq: *healthy-dependency
|
rabbitmq: *healthy-dependency
|
||||||
env_file:
|
env_file:
|
||||||
- .env/prod/rmq
|
- .env/dev/rmq
|
||||||
- .env/prod/batcher-pg
|
- .env/dev/batcher-pg
|
||||||
- .env/prod/batcher
|
- .env/dev/batcher
|
||||||
- .env/prod/bot_token
|
- .env/dev/bot_token
|
||||||
|
|
||||||
batcher-postgres:
|
batcher-postgres:
|
||||||
<<: *pg-conf
|
<<: *pg-conf
|
||||||
volumes:
|
volumes:
|
||||||
- batcher_db_data:/var/lib/postgresql/data
|
- batcher_db_data:/var/lib/postgresql/data
|
||||||
env_file:
|
env_file:
|
||||||
- .env/prod/batcher-pg
|
- .env/dev/batcher-pg
|
||||||
|
|
Loading…
Reference in New Issue
Block a user