From 8b189976f78d5fef7bbcf7c28d8cb4d3488154f1 Mon Sep 17 00:00:00 2001 From: evlic Date: Sun, 27 Nov 2022 22:22:10 +0800 Subject: [PATCH] :tada: docker template init :tada: --- .env | 5 +++++ .gitignore | 1 + docker-compose.yaml | 20 ++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 .env create mode 100644 .gitignore create mode 100644 docker-compose.yaml diff --git a/.env b/.env new file mode 100644 index 0000000..5fc752d --- /dev/null +++ b/.env @@ -0,0 +1,5 @@ +COMPOSE_PROJECT_NAME=$NAME +TZ=Asia/Shanghai +TERM=xterm-256color + +DIR=$HOME/docker.data/$NAME \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..63ea916 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/*/ diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..068a860 --- /dev/null +++ b/docker-compose.yaml @@ -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 \ No newline at end of file