-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-backup2.yaml
99 lines (87 loc) · 1.99 KB
/
docker-compose-backup2.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
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
version: '3'
services:
db:
build: ./db
ports:
- 3336:3306
networks:
gomicrowebNetwork:
ipv4_address: 188.188.0.101
environment:
MYSQL_ROOT_PASSWORD: ${dbpassword}
web-frontend:
build: ./gomicrofront
ports:
- 80:80
networks:
gomicrowebNetwork:
# ipv4_address: 188.188.0.102
web-backend-user-sevice:
build: ./src/user-service
# depends_on:
# - db
networks:
gomicrowebNetwork:
ipv4_address: 188.188.0.103
environment:
DB_HOST: 188.188.0.101
DB_PASSWORD: ${dbpassword}
MICRO_REGISTRY: mdns
web-backend-user-sevice:
build: ./src/user-service
# depends_on:
# - db
networks:
gomicrowebNetwork:
ipv4_address: 188.188.0.103
environment:
DB_HOST: 192.168.0.200
DB_PASSWORD: ${dbpassword}
DB_PORT: 3336
MICRO_REGISTRY: mdns
#
# web-backend-article-service:
# build: ./src/article-service
# depends_on:
# - db
#
# networks:
# gomicrowebNetwork:
# ipv4_address: 172.172.0.103
# environment:
# MONGODB_ADDR: mongodb://172.172.0.103:27017
#
# web-backend-message-service:
# build: ./src/message-service
# depends_on:
# - db
#
# networks:
# gomicrowebNetwork:
# ipv4_address: 172.172.0.103
# environment:
# MONGODB_ADDR: mongodb://172.172.0.103:27017
# web-backend-api:
# build: ./microapi
# networks:
# gomicrowebNetwork:
# ipv4_address: 188.188.0.111
web-backend-api:
build: ./src/microapi
# image: microhq/micro
ports:
- 8228:8228
command: ["--enable_stats","api", "--handler=rpc", "--address=:8228", "--namespace=gomicrodemo1" ,"--cors=http://localhost"]
# command: ["api", "--help",]
networks:
gomicrowebNetwork:
ipv4_address: 188.188.0.111
environment:
MICRO_REGISTRY: mdns
networks:
gomicrowebNetwork:
driver: bridge
ipam:
driver: default
config:
- subnet: 188.188.0.0/16