websoft9/docker/w9portainer/docker-compose.yml
qiaofeng1227 1f97713a91 portainer
2023-09-11 16:51:48 +08:00

31 lines
645 B
YAML

# Portainer can not use .env for the reason that then environments at .env may cover other stacks's .env
version: "3.8"
services:
portainer:
container_name: websoft9-portainer
image: websoft9dev/portainer
build:
context: .
dockerfile: Dockerfile
entrypoint: ["/init_portainer"]
restart: unless-stopped
healthcheck:
test: ["CMD", "/init_endpoint"]
interval: 5s
timeout: 5s
retries: 3
volumes:
- portainer:/data
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 9091:9000
networks:
default:
name: websoft9
external: true
volumes:
portainer: