websoft9/docker/w9portainer/docker-compose.yml

26 lines
543 B
YAML
Raw Normal View History

2023-09-08 18:30:48 +08:00
# Portainer can not use .env for the reason that then environments at .env may cover other stacks's .env
2023-04-20 17:11:36 +08:00
version: "3.8"
services:
2023-09-06 11:47:18 +08:00
2023-04-20 17:11:36 +08:00
portainer:
2023-09-08 16:35:37 +08:00
container_name: websoft9-portainer
2023-09-13 08:53:31 +08:00
image: websoft9dev/portainer:2.19.0
2023-09-06 11:47:18 +08:00
build:
context: .
2023-09-11 08:40:56 +08:00
dockerfile: Dockerfile
2023-09-06 11:47:18 +08:00
entrypoint: ["/init_portainer"]
2023-09-11 16:51:48 +08:00
restart: unless-stopped
2023-04-20 17:11:36 +08:00
volumes:
- portainer:/data
- /var/run/docker.sock:/var/run/docker.sock
2023-07-20 08:32:33 +08:00
ports:
2023-09-08 16:35:37 +08:00
- 9091:9000
2023-04-20 17:11:36 +08:00
networks:
default:
2023-09-08 16:35:37 +08:00
name: websoft9
2023-04-20 17:11:36 +08:00
external: true
volumes:
2023-09-06 11:47:18 +08:00
portainer: