🎉 docker template init 🎉
This commit is contained in:
commit
8b189976f7
5
.env
Normal file
5
.env
Normal file
@ -0,0 +1,5 @@
|
||||
COMPOSE_PROJECT_NAME=$NAME
|
||||
TZ=Asia/Shanghai
|
||||
TERM=xterm-256color
|
||||
|
||||
DIR=$HOME/docker.data/$NAME
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/*/
|
20
docker-compose.yaml
Normal file
20
docker-compose.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
version: '2.12'
|
||||
services:
|
||||
app:
|
||||
container_name: v2
|
||||
image: app:latest
|
||||
restart: always
|
||||
ports:
|
||||
- 3111-3222:3111-3222
|
||||
networks:
|
||||
- apps
|
||||
volumes:
|
||||
- ${DIR}/app:/etc/app
|
||||
environment:
|
||||
APP_ADDRESS: 0.0.0.0:3111
|
||||
depends_on:
|
||||
- app-d
|
||||
|
||||
networks:
|
||||
app:
|
||||
driver: bridge
|
Loading…
Reference in New Issue
Block a user