feat: fix compose.yml

This commit is contained in:
2025-07-29 22:11:41 +08:00
parent eb5150dc15
commit 4b00824463
2 changed files with 32 additions and 7 deletions
+29
View File
@@ -0,0 +1,29 @@
services:
# 1. 后端服务 (Node.js + Express + SMTP Server)
backend:
build: ./backend
container_name: email-backend
restart: always
env_file:
- compose.env
networks:
- email-network
# 2. 数据库服务 (MySQL)
mysql:
image: mysql:8.0
container_name: email-mysql
restart: always
env_file:
- compose.env
volumes:
- mysql-data:/var/lib/mysql
networks:
- email-network
networks:
email-network:
driver: bridge
volumes:
mysql-data: {}