-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
52 lines (49 loc) · 1.29 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
version: '3'
services:
netevent:
image: lan2play/netevent
ports:
- '${APPPort:-5000}:5000'
env_file: .env
environment:
DBProvider: "${DBProvider}"
DBName: "${DBName}"
DBServer: "${DBServer}"
DBPort: "${DBPort}"
DBUser: "${DBUser}"
DBPassword: "${DBPassword}"
TZ: '${TZ}'
volumes:
- netevent_data:/data
networks:
- netevent
depends_on:
- netevent_psql
healthcheck:
test: ["CMD-SHELL", "curl --fail http://localhost:5000/healthz || exit"]
retries: 3
timeout: 5s
netevent_psql:
image: 'postgres:latest'
env_file: .env
environment:
POSTGRES_PASSWORD: '${DBPassword}'
POSTGRES_USER: '${DBUser}'
POSTGRES_DB: '${DBName}'
TZ: '${TZ}'
volumes:
- netevent_psql:/var/lib/postgresql/data
networks:
- netevent
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DBUser} -d ${DBName}"]
retries: 3
timeout: 5s
networks:
netevent:
driver: bridge
volumes:
netevent_data:
driver: local
netevent_psql:
driver: local