-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
84 lines (84 loc) · 1.61 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
version: '3.9'
services:
api:
build: ./api
container_name: api
restart: always
environment:
- API_UNMS_TOKEN=${API_UNMS_TOKEN}
- VERSION=${VERSION}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_NAME=${DB_NAME}
- DB_HOST=${DB_HOST}
volumes:
- ./api:/app
depends_on:
- database
- redis
client:
build: ./client
container_name: client
restart: always
depends_on:
- api
- proxy
logger:
container_name: logger
restart: always
build: ./workers/logs
expose:
- "514"
ports:
- "514:514/udp"
depends_on:
- server
volumes:
- ./workers/logs:/app
server:
container_name: server
restart: always
build: ./workers/server
expose:
- "6969"
ports:
- "6969:6969"
volumes:
- ./workers/server:/app
database:
image: postgres:14.1
restart: always
container_name: database
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
redis:
image: redislabs/rejson:latest
restart: always
container_name: redis
volumes:
- redisdata:/var/lib/redis
ports:
- "6379:6379"
proxy:
image: nginx:1.21
restart: always
container_name: proxy
ports:
- "80:80"
- "443:443"
depends_on:
- worker
- database
- server
- api
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
volumes:
pgdata:
redisdata: