selfhosted-traefik/grocy/docker-compose.yml

36 lines
864 B
YAML
Raw Normal View History

2022-03-13 09:51:30 +00:00
version: '3.5'
networks:
default:
external:
name: traefik_default
services:
grocy-frontend:
2023-10-29 07:41:49 +00:00
image: lscr.io/linuxserver/grocy:latest
2022-03-13 09:51:30 +00:00
container_name: grocy-app
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ${GROCY_ROOT}/data:/config
environment:
- USER_UID=1000
- USER_GID=1000
2023-10-29 07:41:49 +00:00
- TZ=CET
2022-03-13 09:51:30 +00:00
env_file: live.env
labels:
# Watchtower
- "com.centurylinklabs.watchtower.enable=true"
# Routes
- "traefik.enable=true"
- "traefik.http.routers.grocy.entrypoints=websecure"
- "traefik.http.routers.grocy.rule=Host(`grocy.${DOMAIN}`)"
- "traefik.http.routers.grocy.tls=true"
- "traefik.http.routers.grocy.tls.certresolver=myresolver"
networks:
- default
ports:
- 9283:80