add portainer to production

This commit is contained in:
root
2026-05-22 12:18:49 -04:00
parent 72f2a13574
commit 3e856e093d
3 changed files with 30 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
name: rentaldrivego-portainer-prod
services:
portainer:
image: portainer/portainer-ce:lts
command: -H unix:///var/run/docker.sock
restart: unless-stopped
networks:
- traefik-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_prod_data:/data
labels:
- traefik.enable=true
- traefik.http.routers.portainer.rule=Host(`${PORTAINER_DOMAIN:-portainer.rentaldrivego.ma}`)
- traefik.http.routers.portainer.entrypoints=websecure
- traefik.http.routers.portainer.tls=true
- traefik.http.routers.portainer.tls.certresolver=letsencrypt
- traefik.http.routers.portainer.service=portainer-svc
- traefik.http.services.portainer-svc.loadbalancer.server.port=9000
networks:
traefik-proxy:
external: true
volumes:
portainer_prod_data: