-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (70 loc) · 1.29 KB
/
docker-compose.yml
File metadata and controls
79 lines (70 loc) · 1.29 KB
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
version: '3.9'
services:
postgres:
image: postgres:16
container_name: postgres
restart: always
environment:
POSTGRES_USER: cex
POSTGRES_PASSWORD: cex
POSTGRES_DB: cex
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- backend
redis:
image: redis:7
container_name: redis
restart: always
ports:
- "6379:6379"
networks:
- backend
api:
build: ./api
container_name: api
depends_on:
- redis
environment:
REDIS_URL: redis://redis:6379
ports:
- "3000:3000"
networks:
- backend
engine:
build: ./engine
container_name: engine
depends_on:
- redis
environment:
REDIS_URL: redis://redis:6379
networks:
- backend
websocket:
build: ./websocket
container_name: websocket
depends_on:
- redis
environment:
REDIS_URL: redis://redis:6379
ports:
- "8080:8080"
networks:
- backend
db:
build: ./db
container_name: db
depends_on:
- postgres
- redis
environment:
POSTGRES_URL: postgres://cex:cex@postgres:5432/cex
REDIS_URL: redis://redis:6379
networks:
- backend
volumes:
postgres-data:
networks:
backend: