-
Notifications
You must be signed in to change notification settings - Fork 4
/
node-01.yaml
81 lines (80 loc) · 1.85 KB
/
node-01.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: '3.8'
services:
bingo:
container_name: bingo
image: d3adwolf/bingo:0.6
restart: always
environment:
- TZ=Europe/Moscow
- LANG=C.UTF-8
ports:
- '80:19225'
healthcheck:
test: ["CMD", "curl", "-s", "-f", "http://192.168.0.66:19225/ping"]
start_period: 15s
retries: 1
timeout: 3s
interval: 4s
deploy:
resources:
limits:
memory: 1024M
labels:
- "autoheal=true"
depends_on:
postgres:
condition: service_healthy
network_mode: "host"
postgres:
container_name: postgres
image: postgres
restart: always
environment:
- LANG=C.UTF-8
- TZ=Europe/Moscow
- PGUSER=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5432:5432'
volumes:
- postgres:/var/lib/postgresql/data
- ./custompostgresql.conf:/var/lib/postgresql/data/postgresql.conf
healthcheck:
test: pg_isready -d postgres
interval: 15s
timeout: 50s
retries: 3
start_period: 10s
network_mode: "host"
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
restart: always
environment:
- PGADMIN_DEFAULT_PASSWORD=root
ports:
- '5050:80'
- '443:443'
healthcheck:
test: ["CMD", "wget", "-O", "-", "http://localhost:80/misc/ping"]
interval: 10s
timeout: 10s
start_period: 160s
retries: 3
network_mode: "bridge"
autoheal:
container_name: autoheal
image: willfarrell/autoheal
tty: true
restart: always
environment:
- AUTOHEAL_INTERVAL=3
- AUTOHEAL_START_PERIOD=20
- AUTOHEAL_DEFAULT_STOP_TIMEOUT=5
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes:
postgres:
driver: local