Initial commit

This commit is contained in:
docker 2023-09-13 00:28:48 +08:00
commit 281ab4bd76
4 changed files with 43 additions and 0 deletions

7
.env Normal file
View File

@ -0,0 +1,7 @@
NAME="def"
COMPOSE_PROJECT_NAME=$NAME
TZ=Asia/Shanghai
TERM=xterm-256color
DIR=.

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@

11
README.md Normal file
View File

@ -0,0 +1,11 @@
# Docker Template
> Docker Compose 模版文件
```shell
.
├── .env
├── .gitignore
├── README.md
└── docker-compose.yaml
```

24
docker-compose.yaml Normal file
View File

@ -0,0 +1,24 @@
version: '3'
services:
app:
# command: command
container_name: v2
image: app:latest
restart: always
ports:
- 3111-3222:3111-3222
networks:
- local
volumes:
- ${DIR}:/etc/app
- /etc/localtime:/etc/localtime:ro
environment:
APP_ADDRESS: 0.0.0.0:3111
networks:
local:
name: local
external: true