🎉 docker template init 🎉

This commit is contained in:
evlic 2022-11-27 22:22:10 +08:00
commit 8b189976f7
3 changed files with 26 additions and 0 deletions

5
.env Normal file
View 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
View File

@ -0,0 +1 @@
/*/

20
docker-compose.yaml Normal file
View 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