commit 8b189976f78d5fef7bbcf7c28d8cb4d3488154f1 Author: evlic Date: Sun Nov 27 22:22:10 2022 +0800 :tada: docker template init :tada: 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