You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
893 B
41 lines
893 B
5 years ago
|
version: "3.7"
|
||
|
services:
|
||
|
db:
|
||
|
image: mysql:5.6
|
||
|
ports:
|
||
|
- 3306:3306
|
||
|
environment:
|
||
|
- MYSQL_ROOT_PASSWORD=root
|
||
|
- TZ=Asia/Shanghai
|
||
|
volumes:
|
||
|
- .:/docker-entrypoint-initdb.d
|
||
|
command: [
|
||
|
'--character-set-server=utf8',
|
||
|
'--collation-server=utf8_unicode_ci'
|
||
|
]
|
||
|
healthcheck:
|
||
|
test: ["CMD", "mysqladmin" ,"ping", "--protocol=tcp"]
|
||
|
timeout: 20s
|
||
|
interval: 1s
|
||
|
retries: 20
|
||
|
|
||
|
redis:
|
||
|
image: redis
|
||
|
ports:
|
||
|
- 6379:6379
|
||
|
healthcheck:
|
||
|
test: ["CMD", "redis-cli","ping"]
|
||
|
interval: 20s
|
||
|
timeout: 1s
|
||
|
retries: 20
|
||
|
|
||
|
memcached:
|
||
|
image: memcached
|
||
|
ports:
|
||
|
- 11211:11211
|
||
|
healthcheck:
|
||
|
test: ["CMD", "echo", "stats", "|", "nc", "127.0.0.1", "11211"]
|
||
|
interval: 20s
|
||
|
timeout: 1s
|
||
|
retries: 20
|