psu/tests/dockerfiles/docker-stack-portainer.yml
Tortue Torche 5275fc78f2 Experimental support for Portainer CE 2.0 & 2.1
Added:
- Test PSU with Portainer CE 2.0.1 API
- Test PSU with Portainer CE 2.1.1 API

Changed:
- Use Docker Compose 1.28.3 instead of Docker Compose 1.26.2
- Use Traefik 2.4 instead of Traefik 2.2 for testing
- Upgrade operating system of Docker based images, with Alpine 3.13

Removed:
- Test PSU with Portainer 1.22.2 API
- Test PSU with Portainer 1.23.2 API
2021-02-19 11:55:56 +01:00

51 lines
1.4 KiB
YAML

version: '3.7'
services:
portainer:
image: ${PORTAINER_IMAGE}:${PORTAINER_VERSION}
command: --admin-password-file '/run/secrets/psu-portainer-password'${PORTAINER_COMMAND_OPTIONS}
labels:
- traefik.enable=true
- traefik.docker.network=psu-traefik-net
# HTTPS route
- "traefik.http.routers.portainer.entrypoints=https"
- "traefik.http.routers.portainer.rule=Host(`portainer.$BASE_DOMAIN`)"
- "traefik.http.routers.portainer.tls=true"
- traefik.http.middlewares.retry-if-fails.retry.attempts=10
- traefik.http.middlewares.https-only.redirectscheme.scheme=https
- traefik.http.middlewares.secured.chain.middlewares=retry-if-fails,https-only
- traefik.http.routers.portainer.middlewares=secured
# Service
- traefik.http.services.portainer.loadbalancer.server.port=9000
networks:
- psu-traefik-net
environment:
- HTTP_PROXY
- HTTPS_PROXY
- http_proxy
- https_proxy
- NO_PROXY
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- psu-portainer:/data
secrets:
- psu-portainer-password
deploy:
placement:
constraints:
- node.role == manager
update_config:
parallelism: 1
delay: 10s
networks:
psu-traefik-net:
driver: overlay
external: true
secrets:
psu-portainer-password:
external: true
volumes:
psu-portainer: