forked from mj/devopsscripts
增加dockercompose模版
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1 +1,3 @@
|
|||||||
.idea/
|
.idea/
|
||||||
|
.env
|
||||||
|
.DS_Store
|
||||||
16
backend/docker-compose.yaml
Normal file
16
backend/docker-compose.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user