Initial commit
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
version: '3'
|
||||
services:
|
||||
percona_platform:
|
||||
image: percona/percona-server:5.7
|
||||
container_name: percona_platform
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: "Y#nyHuUuYTSEdgv7"
|
||||
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
|
||||
Reference in New Issue
Block a user