From 9d41acc7fa080b80b78faeb314ac1f9cfcce198d Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Thu, 20 Apr 2023 09:11:36 +0000 Subject: [PATCH] add portainer --- docker/w9portainer/.env | 4 ++++ docker/w9portainer/docker-compose.yml | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 docker/w9portainer/.env create mode 100644 docker/w9portainer/docker-compose.yml diff --git a/docker/w9portainer/.env b/docker/w9portainer/.env new file mode 100644 index 00000000..034595be --- /dev/null +++ b/docker/w9portainer/.env @@ -0,0 +1,4 @@ +APP_NAME=websoft9-portainer +APP_VERSION=latest +APP_HTTP_PORT=9091 +APP_NETWORK=websoft9 \ No newline at end of file diff --git a/docker/w9portainer/docker-compose.yml b/docker/w9portainer/docker-compose.yml new file mode 100644 index 00000000..3c578534 --- /dev/null +++ b/docker/w9portainer/docker-compose.yml @@ -0,0 +1,21 @@ +version: "3.8" + +services: + portainer: + image: portainer/portainer-ce:${APP_VERSION} + container_name: ${APP_NAME} + restart: unless-stopped + env_file: .env + ports: + - ${APP_HTTP_PORT}:9000 + volumes: + - portainer:/data + - /var/run/docker.sock:/var/run/docker.sock + +networks: + default: + name: ${APP_NETWORK} + external: true + +volumes: + portainer: \ No newline at end of file