mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 18:30:23 +08:00
31 lines
645 B
YAML
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: |