-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-dev.yml
165 lines (165 loc) · 4 KB
/
docker-compose-dev.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# syntax version.
version: "3"
networks:
lsv_net:
ipam:
config:
- subnet: 172.16.1.0/24
services:
lsv_laravel:
build:
context: ./laravel
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
build:
context: ./docker/mysql
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
dev_admin_vue3:
build:
context: ./dev_admin_vue3
container_name: dev_admin_vue3
restart: always
networks:
lsv_net:
ipv4_address: 172.16.1.11
ports:
- 886:886
dns:
- 8.8.8.8
- 8.8.4.4
volumes:
- "./dev_admin_vue3:/vue/"
stdin_open: true
tty: true
working_dir: /vue
command: sh ./start.sh
saas_admin_vue3:
build:
context: ./saas_admin_vue3
container_name: saas_admin_vue3
restart: always
networks:
lsv_net:
ipv4_address: 172.16.1.12
ports:
- 887:887
dns:
- 8.8.8.8
- 8.8.4.4
volumes:
- "./saas_admin_vue3:/vue/"
stdin_open: true
tty: true
working_dir: /vue
command: sh ./start.sh