feat:fix docker-compose

This commit is contained in:
shenjianZ 2025-07-31 11:28:20 +08:00
parent 9ceb96d9c7
commit eecac11240
2 changed files with 17 additions and 1 deletions

2
.gitignore vendored
View File

@ -5,5 +5,5 @@
/frontend/dist
plan.md
info.md
docker-compose.self.yml
# docker-compose.self.yml
compose.self.env

16
docker-compose.self.yml Normal file
View File

@ -0,0 +1,16 @@
services:
backend:
build: ./backend
container_name: email-backend
restart: always
ports:
- "5182:5182" # API port
- "25:25" # SMTP port
# mysql 使用外部数据源
env_file:
- compose.self.env
networks:
- email-network
networks:
email-network:
driver: bridge