Files
dukang/deploy/docker-compose.yml

32 lines
696 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: dukang-v1
# 与 dukang-v36014/6015)隔离;本栈使用 6016/6017
services:
mysql:
image: mysql:8.0
container_name: dukang-v1-mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: dukang_haoke
ports:
- '6016:3306'
volumes:
- mysql_data:/var/lib/mysql
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
redis:
image: redis:7-alpine
container_name: dukang-v1-redis
restart: unless-stopped
ports:
- '6017:6379'
volumes:
- redis_data:/data
volumes:
mysql_data:
name: dukang-v1_mysql_data
redis_data:
name: dukang-v1_redis_data