-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
97 lines (88 loc) · 2 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: "3"
services:
api:
image: xombie/userv
command: /opt/xombie/bin/api
networks:
- frontend
- backend
depends_on:
- db
- redis
faux_dns:
image: xombie/userv
command: /opt/xombie/bin/faux-dns --dns-port 5300
ports:
- "53:5300/udp"
networks:
- frontend
- backend
depends_on:
- db
- redis
kdc:
image: xombie/userv
command: /opt/xombie/bin/kdc
ports:
- "88:88/udp"
networks:
- frontend
- backend
depends_on:
- db
- redis
sg:
image: xombie/userv
command: /opt/xombie/bin/sg
ports:
- "3074:3074/udp"
networks:
- frontend
- backend
depends_on:
- db
- redis
redis:
image: redis:6.2.5-alpine
volumes:
- "./healthchecks:/healthchecks"
healthcheck:
test: /healthchecks/redis.sh
interval: "5s"
ports:
- "6379:6379"
networks:
- backend
db:
image: postgres:14.0
environment:
POSTGRES_USER: "postgres"
volumes:
- "db-data:/var/lib/postgresql/data"
- "./healthchecks:/healthchecks"
healthcheck:
test: /healthchecks/postgres.sh
interval: "5s"
ports:
- "5432:5432"
networks:
- backend
nginx:
build:
context: frontend
dockerfile: Dockerfile
args:
REACT_APP_API_BASE_URL: http://127.0.0.1/api
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- "80:80"
networks:
- frontend
depends_on:
- api
volumes:
db-data:
networks:
frontend:
backend: