generated from docker/tmpl
Initial commit
This commit is contained in:
commit
281ab4bd76
7
.env
Normal file
7
.env
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
NAME="def"
|
||||||
|
|
||||||
|
COMPOSE_PROJECT_NAME=$NAME
|
||||||
|
TZ=Asia/Shanghai
|
||||||
|
TERM=xterm-256color
|
||||||
|
|
||||||
|
DIR=.
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
11
README.md
Normal file
11
README.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Docker Template
|
||||||
|
|
||||||
|
> Docker Compose 模版文件
|
||||||
|
|
||||||
|
```shell
|
||||||
|
.
|
||||||
|
├── .env
|
||||||
|
├── .gitignore
|
||||||
|
├── README.md
|
||||||
|
└── docker-compose.yaml
|
||||||
|
```
|
24
docker-compose.yaml
Normal file
24
docker-compose.yaml
Normal 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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user