增加dockercompose模版

This commit is contained in:
王川
2026-05-11 16:35:42 +08:00
parent 57f14d0894
commit 857d157543
2 changed files with 19 additions and 1 deletions

2
.gitignore vendored
View File

@@ -1 +1,3 @@
.idea/ .idea/
.env
.DS_Store

View File

@@ -0,0 +1,16 @@
services:
__PROJECT_NAME__:
image: __PROJECT_IMAGE_ADDR__
container_name: __PROJECT_NAME__
restart: always
env_file:
- .env
volumes:
- /etc/localtime:/etc/localtime:ro
- /opt/mingjiang/logs/__PROJECT_NAME__:/usr/local/mingjiang/logs
networks:
- mj_network
networks:
mj_network:
name: mingjiang_network
external: true