app-store/apps/mealie/docker-compose.yml

41 lines
1.6 KiB
YAML
Raw Normal View History

2022-07-28 17:46:12 +00:00
version: "3.7"
services:
mealie:
container_name: mealie
image: hkotel/mealie:v0.5.6
restart: unless-stopped
ports:
- ${APP_PORT}:80
environment:
PUID: 1000
PGID: 1000
volumes:
- ${APP_DATA_DIR}/data:/app/data
networks:
2022-11-11 19:33:58 +00:00
- tipi_main_network
labels:
# Main
traefik.enable: true
traefik.http.middlewares.mealie-web-redirect.redirectscheme.scheme: https
traefik.http.services.mealie.loadbalancer.server.port: 80
# Web
traefik.http.routers.mealie-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.mealie-insecure.entrypoints: web
traefik.http.routers.mealie-insecure.service: mealie
traefik.http.routers.mealie-insecure.middlewares: mealie-web-redirect
# Websecure
2022-11-11 19:33:58 +00:00
traefik.http.routers.mealie.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.mealie.entrypoints: websecure
traefik.http.routers.mealie.service: mealie
traefik.http.routers.mealie.tls.certresolver: myresolver
# Local domain
traefik.http.routers.mealie-local-insecure.rule: Host(`mealie.${LOCAL_DOMAIN}`)
traefik.http.routers.mealie-local-insecure.entrypoints: web
traefik.http.routers.mealie-local-insecure.service: mealie
traefik.http.routers.mealie-local-insecure.middlewares: mealie-web-redirect
# Local domain secure
traefik.http.routers.mealie-local.rule: Host(`mealie.${LOCAL_DOMAIN}`)
traefik.http.routers.mealie-local.entrypoints: websecure
traefik.http.routers.mealie-local.service: mealie
traefik.http.routers.mealie-local.tls: true