-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
112 lines (106 loc) · 2.24 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
version: "3.7"
networks:
project-network:
services:
service-cars:
build:
context: "./service-cars"
target: builder
command: "yarn start:debug"
ports:
- "3001:3001"
- "9230:9229"
volumes:
- ./service-cars:/usr/src/app
networks:
- project-network
depends_on:
- database-cars
container_name: service-cars
service-drivers:
build:
context: "./service-drivers"
target: builder
command: "yarn start:debug"
ports:
- "3002:3001"
- "9231:9229"
volumes:
- ./service-drivers:/usr/src/app
networks:
- project-network
depends_on:
- database-drivers
container_name: service-drivers
service-racetracks:
build:
context: "./service-racetracks"
target: builder
command: "yarn start:debug"
ports:
- "3003:3001"
- "9232:9229"
volumes:
- ./service-racetracks:/usr/src/app
networks:
- project-network
depends_on:
- database-racetracks
container_name: service-racetracks
gateway:
build:
context: "./gateway"
target: builder
command: "yarn dev"
ports:
- "4000:4000"
- "9229:9229"
volumes:
- ./gateway:/usr/src/app
networks:
- project-network
database-cars:
build:
context: ./database-cars
shm_size: "2gb"
shm_size: "2gb"
ports:
- "8000:5432"
volumes:
- ./database-cars/db:/db
networks:
- project-network
environment:
POSTGRES_USER: project
POSTGRES_PASSWORD: project
INITIALIZE_DB: "true"
database-drivers:
build:
context: ./database-drivers
shm_size: "2gb"
shm_size: "2gb"
ports:
- "8001:5432"
volumes:
- ./database-drivers/db:/db
networks:
- project-network
environment:
POSTGRES_USER: project
POSTGRES_PASSWORD: project
INITIALIZE_DB: "true"
database-racetracks:
build:
context: ./database-racetracks
shm_size: "2gb"
shm_size: "2gb"
ports:
- "8002:5432"
volumes:
- ./database-racetracks/db:/db
networks:
- project-network
environment:
POSTGRES_USER: project
POSTGRES_PASSWORD: project
INITIALIZE_DB: "true"