43 lines
960 B
YAML
43 lines
960 B
YAML
version: '3'
|
|
services:
|
|
percona_platform:
|
|
image: percona/percona-server:5.7
|
|
container_name: percona_platform
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: "77jqtG5DMQm3R3PV"
|
|
TZ: "Asia/Shanghai"
|
|
volumes:
|
|
- ./datad:/var/lib/mysql
|
|
- ./mysqld.cnf:/etc/my.cnf.d/docker.cnf
|
|
ports:
|
|
- "3306:3306"
|
|
dns:
|
|
- 1.1.1.1
|
|
- 1.0.0.1
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10240k"
|
|
max-file: "10"
|
|
network_mode: "bridge"
|
|
restart: always
|
|
cache_platform:
|
|
image: redis:4
|
|
container_name: cache_platform
|
|
volumes:
|
|
- ./redis.conf:/etc/redis/redis.conf
|
|
command: redis-server /etc/redis/redis.conf
|
|
environment:
|
|
- TZ=Asia/Shanghai
|
|
ports:
|
|
- "6379:6379"
|
|
dns:
|
|
- 1.1.1.1
|
|
- 1.0.0.1
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "10240k"
|
|
max-file: "10"
|
|
network_mode: "bridge"
|
|
restart: always |