-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
52 lines (52 loc) · 1.53 KB
/
docker-compose.yaml
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
version: "3"
services:
bot:
# or image: bot_image
image: 192.168.0.103:5000/bot_image:${version:-latest}
build:
context: ./bot
environment:
- 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}
volumes:
- pg_logs:/var/log/
db:
# build: ./db # or image: db_image
image: 192.168.0.103:5000/db_image:${version:-latest}
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}.interspace
- DB_PORT=${DB_PORT}
- DB_DATABASE=${DB_DATABASE}
container_name: "${DB_HOST}"
db_repl:
image: 192.168.0.103:5000/db_repl_image:${version:-latest}
build: ./db_repl # or image: db_repl_image
container_name: "${DB_REPL_HOST}"
environment:
- DB_HOST=${DB_HOST}.interspace
- 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:
default:
name: interspace