add portainer

This commit is contained in:
qiaofeng1227 2023-04-20 09:11:36 +00:00
parent c0d8f3e3dd
commit 9d41acc7fa
2 changed files with 25 additions and 0 deletions

4
docker/w9portainer/.env Normal file
View File

@ -0,0 +1,4 @@
APP_NAME=websoft9-portainer
APP_VERSION=latest
APP_HTTP_PORT=9091
APP_NETWORK=websoft9

View File

@ -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: