-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (69 loc) · 1.6 KB
/
docker-compose.yml
File metadata and controls
76 lines (69 loc) · 1.6 KB
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
version: "3.8"
services:
auth-service:
build: ./auth-service
container_name: auth-service
restart: on-failure
ports:
- "80:80"
networks:
bearchat:
ipv4_address:
172.28.1.1
depends_on:
- db-server
expose:
- '80'
db-server:
build: ./db-server
container_name: db-server
restart: on-failure
ports:
- "3306:3306"
env_file:
- ./db-server/database.env
networks:
bearchat:
ipv4_address:
172.28.1.2
expose:
- '3306'
posts-service:
build: ./posts
container_name: posts-service
restart: on-failure
ports:
- "81:80"
networks:
bearchat:
ipv4_address:
172.28.1.3
depends_on:
- db-server
expose:
- '81'
profiles-service:
build: ./profiles
container_name: profiles-service
restart: on-failure
ports:
- "82:80"
networks:
bearchat:
ipv4_address:
172.28.1.4
friends-service:
build: ./friends
container_name: friends-service
restart: on-failure
ports:
- "83:80"
networks:
bearchat:
ipv4_address:
172.28.1.5
networks:
bearchat:
ipam:
config:
- subnet: 172.28.1.0/16