-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yaml
108 lines (100 loc) · 1.87 KB
/
docker-compose-dev.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
services:
client:
build:
context: client
target: dev
container_name: client-dev
ports:
- 3000:3000
volumes:
- ./client/:/app/
- /app/node_modules
env_file: .env-dev
environment:
- NODE_ENV=development
networks:
- exchange_nw
server:
build:
context: server
target: dev
container_name: server-dev
ports:
- 4000:4000
env_file: .env-dev
volumes:
- ./server/:/app/
- /app/node_modules
depends_on:
- mq
networks:
- exchange_nw
web-sockets:
build:
context: web-sockets
target: dev
container_name: ws-dev
volumes:
- ./web-sockets/:/app/
- /app/node_modules
ports:
- 5000:5000
networks:
- exchange_nw
depends_on:
- mq
env_file: .env-dev
engine:
build:
context: engine
target: dev
container_name: engine-dev
volumes:
- ./engine/:/app/
- /app/node_modules
depends_on:
- mq
networks:
- exchange_nw
env_file: .env-dev
mq:
image: redis
container_name: mq-dev
ports:
- 6379:6379
networks:
- exchange_nw
db:
image: timescale/timescaledb-ha:pg16
container_name: db-dev
environment:
- POSTGRES_DB=exchange
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=mypwd
- POSTGRES_HOST=timescaledb
- POSTGRES_PORT=5432
ports:
- 5432:5432
volumes:
- timescale-data:/var/lib/postgresql/data
networks:
- exchange_nw
db-processor:
container_name: db-processor-dev
build:
context: db-processor
target: dev
networks:
- exchange_nw
volumes:
- ./db-processor/:/app/
- /app/node_modules
depends_on:
- mq
- db
env_file: .env-dev
networks:
exchange_nw:
driver: bridge
volumes:
timescale-data: