-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbackup.yml
64 lines (59 loc) · 1.19 KB
/
backup.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
version: '3'
services:
gateway-service:
build:
context: ./gateway-service
dockerfile: Dockerfile
container_name: gateway-service
image: gateway-service
ports:
- "8082:8082"
depends_on:
- db
- redis
networks:
- micro-back
config-server:
build:
context: ./config-server
dockerfile: Dockerfile
container_name: config-server
image: config-server
ports:
- "8881:8881"
networks:
- micro-back
depends_on:
- rabbitmq
db:
image: mysql
container_name: mysql001
volumes:
- /docker/mysql/data:/var/lib/mysql
environment:
TZ: 'Asia/Shanghai'
MYSQL_ROOT_PASSWORD: 123456
ports:
- "3306:3306"
networks:
- micro-back
redis:
image: redis
container_name: redis001
ports:
- "6379:6379"
networks:
- micro-back
rabbitmq:
image: rabbitmq:3.6.12-management
container_name: myrabbitmq
ports:
- "5672:5672"
- "15672:15672"
- "15674:15674"
command: bash -c "cd /etc/rabbitmq && rabbitmq-plugins enable rabbitmq_web_stomp"
networks:
- micro-back
networks:
micro-back:
driver: bridge