-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (57 loc) · 1.44 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: "3"
services:
bot:
image: bot_image
build:
context: ./bot
environment:
- POSTGRES_USER=${DB_USER}
- TOKEN=${TOKEN}
- RM_HOST=${RM_HOST}
- RM_PORT=${RM_PORT}
- RM_USER=${RM_USER}
- RM_PASSWORD=${RM_PASSWORD}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_DATABASE=${DB_DATABASE}
- DB_REPL_USER=${DB_REPL_USER}
- DB_REPL_PASSWORD=${DB_REPL_PASSWORD}
- DB_REPL_HOST=${DB_REPL_HOST}
- DB_REPL_PORT=${DB_REPL_PORT}
- POSTGRES_PASSWORD=${DB_PASSWORD}
volumes:
- pg_logs:/var/log/
container_name: "${BOT}"
db:
image: db_image
build: ./db
volumes:
- pg_logs:/var/log/
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- DB_REPL_USER=${DB_REPL_USER}
- DB_REPL_PASSWORD=${DB_REPL_PASSWORD}
- DB_REPL_HOST=${DB_REPL_HOST}
- DB_PORT=${DB_PORT}
- DB_DATABASE=${DB_DATABASE}
container_name: "${DB_HOST}"
db_repl:
image: db_repl_image
build: ./db_repl
container_name: "${DB_REPL_HOST}"
environment:
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- DB_REPL_HOST=${DB_REPL_HOST}
- DB_REPL_PORT=${DB_REPL_PORT}
- DB_REPL_USER=${DB_REPL_USER}
- DB_REPL_PASSWORD=${DB_REPL_PASSWORD}
volumes:
pg_data:
pg_logs:
networks:
backend:
driver: bridge