-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
59 lines (59 loc) · 1.45 KB
/
docker-compose.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
version: '3'
services:
mysql:
container_name: mysql8
image: mysql:${MYSQL_VERSION}
restart: always
ports:
- 3309:3306
environment:
TZ: Asia/Shanghai
MYSQL_ROOT_PASSWORD: wang
MYSQL_DATABASE: pear_project
volumes:
- ${MYSQL_DIR}/data:/var/lib/mysql
- ${MYSQL_DIR}/conf:/etc/mysql/conf.d/
- ${MYSQL_DIR}/logs:/logs
command:
--default-authentication-plugin=mysql_native_password
--character-set-server=utf8mb4
--collation-server=utf8mb4_general_ci
--explicit_defaults_for_timestamp=true
--lower_case_table_names=1
Redis:
container_name: redis6
image: redis:${REDIS_VERSION}
restart: always
volumes:
- ${REDIS_DIR}/data:/data
- ${REDIS_DIR}/conf/redis.conf:/etc/redis/redis.conf
ports:
- ${REDIS_PORT}:6379
command: redis-server /etc/redis/redis.conf
Etcd:
container_name: etcd3
image: bitnami/etcd:${ETCD_VERSION}
deploy:
replicas: 1
restart_policy:
condition: on-failure
environment:
- ALLOW_NONE_AUTHENTICATION=yes
privileged: true
volumes:
- ${ETCD_DIR}/data:/bitnami/etcd/data
ports:
- ${ETCD_PORT}:2379
- 2380:2380
Project-User:
container_name: menu-user
image: menu-user:latest
ports:
- 8080:8080
- 8881:8881
Project-Project:
container_name: menu-project
image: menu-project:latest
ports:
- 8081:8081
- 8882:8882