Files
wechat_ipad_pro/docker-compose.yaml
2026-02-17 13:06:23 +08:00

51 lines
1.1 KiB
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.
version: '3'
services:
wxserver:
build: .
container_name: wxserver
restart: always
ports:
- "5253:5253"
volumes:
- ./assets:/app/assets
- ./static:/app/static
- ./logs:/app/logs
depends_on:
- redis
- mysql
networks:
- wx_network
environment:
- MYSQL_HOST=mysql
- REDIS_HOST=redis
redis:
image: redis:latest
container_name: wx_redis
restart: always
command: redis-server --appendonly yes
volumes:
- ./redis_data:/data
networks:
- wx_network
# 注意未暴露Redis端口到宿主机
mysql:
image: mysql:8.0
container_name: wx_mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: 123456
MYSQL_DATABASE: wechat_mmtls
volumes:
- ./mysql_data:/var/lib/mysql
- ./mysql_init:/docker-entrypoint-initdb.d
networks:
- wx_network
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
# 注意未暴露MySQL端口到宿主机
networks:
wx_network:
driver: bridge