-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
60 lines (53 loc) · 1.21 KB
/
docker-compose.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
# Create containers from images: utilies/{user,auth,printing} with exposed ports 8001, 8002, 8003 internally in network utilities_network
# Create container from image mongo with exposed port 27017 internally in network utilities_network
services:
user:
image: utilities/user
container_name: utilities_user
networks:
- utilities_network
env_file:
- .docker.env
ports:
- "8001:8001"
auth:
image: utilities/auth
container_name: utilities_auth
networks:
- utilities_network
env_file:
- .docker.env
ports:
- "8002:8002"
internal:
image: utilities/internal
container_name: utilities_internal
networks:
- utilities_network
env_file:
- .docker.env
ports:
- "8003:8003"
printing:
image: utilities/printing
container_name: utilities_printing
networks:
- utilities_network
env_file:
- .docker.env
ports:
- "8004:8004"
mongo:
image: mongo
container_name: utilities_mongo
volumes:
- mongo_data:/data/db
ports:
- "127.0.0.1:27017:27017"
networks:
- utilities_network
volumes:
mongo_data:
networks:
utilities_network:
driver: bridge