| 
									
										
										
										
											2023-01-04 10:50:07 +00:00
										 |  |  | version: "3.7"
 | 
					
						
							|  |  |  | services:
 | 
					
						
							|  |  |  |   grocy:
 | 
					
						
							| 
									
										
										
										
											2023-02-06 05:47:08 +00:00
										 |  |  |     image: lscr.io/linuxserver/grocy:v3.3.2-ls180
 | 
					
						
							| 
									
										
										
										
											2023-01-04 10:50:07 +00:00
										 |  |  |     container_name: grocy
 | 
					
						
							|  |  |  |     volumes:
 | 
					
						
							|  |  |  |       - ${APP_DATA_DIR}/data:/config
 | 
					
						
							|  |  |  |     restart: unless-stopped
 | 
					
						
							|  |  |  |     environment:
 | 
					
						
							|  |  |  |       - PUID=1000
 | 
					
						
							|  |  |  |       - PGID=1000
 | 
					
						
							|  |  |  |       - TZ=${TZ}
 | 
					
						
							|  |  |  |     ports:
 | 
					
						
							|  |  |  |       - ${APP_PORT}:80
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 | 
					
						
							|  |  |  |     labels:
 | 
					
						
							| 
									
										
										
										
											2023-06-10 14:46:05 +00:00
										 |  |  |       # Main
 | 
					
						
							|  |  |  |       traefik.enable: true
 | 
					
						
							|  |  |  |       traefik.http.middlewares.grocy-web-redirect.redirectscheme.scheme: https
 | 
					
						
							|  |  |  |       traefik.http.services.grocy.loadbalancer.server.port: 80
 | 
					
						
							|  |  |  |       # Web
 | 
					
						
							|  |  |  |       traefik.http.routers.grocy-insecure.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.grocy-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.grocy-insecure.service: grocy
 | 
					
						
							|  |  |  |       traefik.http.routers.grocy-insecure.middlewares: grocy-web-redirect
 | 
					
						
							|  |  |  |       # Websecure
 | 
					
						
							| 
									
										
										
										
											2023-01-04 10:50:07 +00:00
										 |  |  |       traefik.http.routers.grocy.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.grocy.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.grocy.service: grocy
 | 
					
						
							|  |  |  |       traefik.http.routers.grocy.tls.certresolver: myresolver
 | 
					
						
							| 
									
										
										
										
											2023-06-10 14:46:05 +00:00
										 |  |  |       # Local domain
 | 
					
						
							|  |  |  |       traefik.http.routers.grocy-local-insecure.rule: Host(`grocy.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.grocy-local-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.grocy-local-insecure.service: grocy
 | 
					
						
							|  |  |  |       traefik.http.routers.grocy-local-insecure.middlewares: grocy-web-redirect
 | 
					
						
							|  |  |  |       # Local domain secure
 | 
					
						
							|  |  |  |       traefik.http.routers.grocy-local.rule: Host(`grocy.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.grocy-local.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.grocy-local.service: grocy
 | 
					
						
							|  |  |  |       traefik.http.routers.grocy-local.tls: true
 |