-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (61 loc) · 1.43 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
version: "3"
services:
web:
container_name: web
build: ./client/
command: yarn serve
ports:
- 3000:8080
depends_on:
- api-gateway
volumes:
- ./client:/app/client
- /app/client/node_modules
api-gateway:
container_name: api-gateway
build: ./services/gateway/
command: yarn dev
ports:
- 5000:5000
environment:
- USER_SERVICE_HOST=http://users-service:5001
- TASK_SERVICE_HOST=http://tasks-service:5002
depends_on:
- users-service
- tasks-service
volumes:
- ./services/gateway:/app/services/gateway
- /app/services/gateway/node_modules
users-service:
container_name: users-service
build: ./services/users/
command: yarn dev
ports:
- 5001:5001
depends_on:
- postgres
volumes:
- ./services/users:/app/services/users
- /app/services/users/node_modules
tasks-service:
container_name: tasks-service
build: ./services/tasks/
command: yarn dev
ports:
- 5002:5002
depends_on:
- postgres
volumes:
- ./services/tasks:/app/services/tasks
- /app/services/tasks/node_modules
postgres:
container_name: postgres
image: postgres:10
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- db_data:/var/lib/postgresql/data
volumes:
db_data: