-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-pro.yml
125 lines (125 loc) · 3.35 KB
/
docker-compose-pro.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# syntax version.
version: "3"
networks:
lsv_net:
ipam:
config:
- subnet: 172.16.1.0/24
services:
lsv_laravel:
image: registry.cn-guangzhou.aliyuncs.com/xht_crm/laravel_saas_vue3:1.0.0
container_name: lsv_laravel
restart: always
ports:
- "8000:8000"
depends_on:
- lsv_redis
- lsv_mysql
- lsv_mongo
- lsv_rabbitmq
- lsv_memcached
networks:
lsv_net:
ipv4_address: 172.16.1.6
dns:
- 8.8.8.8
- 8.8.4.4
volumes:
- "./laravel/.:/laravel/"
- "./php/.:/php/"
- "./docker/php-cli/php.ini:/usr/local/etc/php/php.ini"
stdin_open: true
tty: true
working_dir: /laravel
command: sh ./start.sh
lsv_redis:
restart: always
image: "registry.cn-guangzhou.aliyuncs.com/tu_guan/hash_mainland_redis:1.0.0"
container_name: lsv_redis
networks:
lsv_net:
ipv4_address: 172.16.1.4
ports:
- "9002:6379"
volumes:
- "./docker/redis:/redis/"
command: bash -c "redis-server /redis/redis.conf && /bin/bash"
stdin_open: true
tty: true
lsv_memcached:
restart: always
image: "registry.cn-guangzhou.aliyuncs.com/xht_crm/memcached:3.0.0"
container_name: lsv_memcached
networks:
lsv_net:
ipv4_address: 172.16.1.8
volumes:
- "./docker/memcached/start.sh:/memcached/start.sh"
command: sh /memcached/start.sh
stdin_open: true
tty: true
lsv_mysql:
restart: always
image: registry.cn-guangzhou.aliyuncs.com/xht_crm/laravel_saas_vue3_mysql:1.0.0
container_name: lsv_mysql
networks:
lsv_net:
ipv4_address: 172.16.1.3
ports:
- "9308:3306"
volumes:
- "./docker/mysql/conf.d:/etc/mysql/conf.d"
- "./docker/mysql/my.cnf.fallback:/etc/mysql/my.cnf.fallback"
- "./docker/mysql/logs:/logs"
- "./docker/mysql/data:/var/lib/mysql"
- "/etc/localtime:/etc/localtime"
environment:
MYSQL_ROOT_PASSWORD: "0epbavnfpCR750t3Ms4Tw" #root密码
stdin_open: true
tty: true
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
lsv_mongo:
restart: always
image: "registry.cn-guangzhou.aliyuncs.com/tu_guan/hash_mainland_mongo:2.0.0"
container_name: lsv_mongo
networks:
lsv_net:
ipv4_address: 172.16.1.5
ports:
- "9003:27017"
volumes:
- "./docker/mongo/.:/mongo/"
working_dir: /mongo
command: sh ./start.sh
stdin_open: true
tty: true
lsv_mongo_replica:
restart: always
image: "registry.cn-guangzhou.aliyuncs.com/tu_guan/hash_mainland_mongo:2.0.0"
container_name: lsv_mongo_replica
networks:
lsv_net:
ipv4_address: 172.16.1.10
volumes:
- "./docker/mongo_replica/.:/mongo/"
working_dir: /mongo
command: sh ./start.sh
stdin_open: true
tty: true #
lsv_rabbitmq:
restart: always
image: "registry.cn-guangzhou.aliyuncs.com/tu_guan/rabbitmq:2.0.0"
container_name: lsv_rabbitmq
ports:
- "15673:15672"
networks:
lsv_net:
ipv4_address: 172.16.1.7
volumes:
- "./docker/rabbitmq/conf/.:/etc/rabbitmq" #配置文件
- "./docker/rabbitmq/start.sh:/rabbitmq/start.sh" #启动脚本
- "./docker/rabbitmq/logs:/var/log/rabbitmq" #日志文件
working_dir: /rabbitmq
command: sh start.sh
stdin_open: true
tty: true