back to traefik

This commit is contained in:
Yax 2021-11-01 19:10:42 +01:00
parent 9bd9f23d9e
commit 4c2bdef32e
16 changed files with 171 additions and 60 deletions

View file

@ -5,8 +5,6 @@ services:
container_name: pigallery2
environment:
NODE_ENV: production
VIRTUAL_HOST: ${HOST_PIGALLERY}.${DOMAIN}
LETSENCRYPT_HOST: ${HOST_PIGALLERY}.${DOMAIN}
image: bpatrik/pigallery2:1.9.0-alpine
networks:
- srv
@ -26,9 +24,15 @@ services:
cap_add:
- SYS_ADMIN
healthcheck:
disable: true
disable: true
labels:
- traefik.enable=true
- traefik.http.routers.pigallery_config.rule=Host(`${HOST_PIGALLERY}.${DOMAIN}`)
- traefik.http.routers.pigallery_config.entrypoints=websecure
- traefik.http.routers.pigallery_config.tls=true
- traefik.http.services.pigallery_config.loadbalancer.server.port=80
volumes:
pigallerydb_data:
pigallery_tmp:
pigallery_config:
pigallery_config: