Skip to content

Instantly share code, notes, and snippets.

@tet3
Created April 13, 2020 20:16
Show Gist options
  • Save tet3/3511a672348cca02ef55a7a46f736de4 to your computer and use it in GitHub Desktop.
Save tet3/3511a672348cca02ef55a7a46f736de4 to your computer and use it in GitHub Desktop.
version: "2.1"
services:
grocy:
image: linuxserver/grocy
container_name: grocy
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
labels:
- "traefik.enable=true"
- "traefik.http.routers.grocy.entrypoints=http"
- "traefik.http.routers.grocy.rule=Host(`grocy.domain.ws`)"
- "traefik.http.middlewares.grocy-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.grocy.middlewares=grocy-https-redirect"
- "traefik.http.routers.grocy-secure.entrypoints=https"
- "traefik.http.routers.grocy-secure.rule=Host(`grocy.domain.ws`)"
- "traefik.http.routers.grocy-secure.tls=true"
- "traefik.http.routers.grocy-secure.tls.certresolver=http"
- "traefik.http.routers.grocy-secure.service=grocy-grocy-linuxserver"
#- "traefik.http.services.grocy.loadbalancer.server.port=9283"
- "traefik.docker.network=proxy"
volumes:
- /home/thomas/containers/grocy-linuxserver/data:/config
# ports:
# - 9283:80
expose:
- 80
restart: unless-stopped
networks:
default:
external:
name: proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment