-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
100 lines (97 loc) · 1.85 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
version: '3.0'
services:
td1Node:
image: node:alpine
container_name: api-nodejs
working_dir: /app/Order
volumes:
- ./app/Order:/app/Order
command: "npm run dev"
env_file:
- order.env
depends_on:
- db
networks:
- backend
links:
- db
db:
image: mysql:5.7
container_name: mysql
ports:
- "3306:3306"
env_file:
- order.env
volumes:
- ./db/data:/var/lib/mysql
- ./db/sql:/docker-entrypoint-initdb.d
networks:
- backend
auth:
image: node:alpine
container_name: auth-nodejs
working_dir: /app/Auth
volumes:
- ./app/Auth:/app/Auth
command: "npm run dev"
env_file:
- auth.env
depends_on:
- dbAuth
networks:
- backend
links:
- dbAuth
dbAuth:
image: mysql:5.7
container_name: mysql-auth
ports:
- "3307:3306"
env_file:
- auth.env
volumes:
- ./db/data-auth:/var/lib/mysql
- ./db/sql-auth:/docker-entrypoint-initdb.d
networks:
- backend
gateway:
image: node:alpine
container_name: gateway-nodejs
working_dir: /app/Gateway
volumes:
- ./app/Gateway:/app/Gateway
ports:
- "3000:3000"
command: "npm run dev"
env_file:
- gateway.env
networks:
- backend
links:
- td1Node
- auth
databaseDirectus:
container_name: database
image: postgis/postgis:13-master
volumes:
- ./data/database:/var/lib/postgresql/data
networks:
- backend
env_file:
- directus.env
directus:
container_name: directus
image: directus/directus:latest
ports:
- 8055:8055
volumes:
- ./uploads:/directus/uploads
networks:
- backend
depends_on:
- databaseDirectus
env_file:
- directus.env
networks:
backend:
driver: bridge