| 
									
										
										
										
											2023-06-10 15:29:03 +00:00
										 |  |  | version: "3.7"
 | 
					
						
							| 
									
										
										
										
											2023-02-28 05:30:01 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | services:
 | 
					
						
							|  |  |  |   hedgedoc:
 | 
					
						
							| 
									
										
										
										
											2023-03-01 19:58:44 +00:00
										 |  |  |     container_name: hedgedoc
 | 
					
						
							| 
									
										
										
										
											2023-07-30 18:59:14 +00:00
										 |  |  |     image: quay.io/hedgedoc/hedgedoc:1.9.9
 | 
					
						
							| 
									
										
										
										
											2023-02-28 05:30:01 +00:00
										 |  |  |     environment:
 | 
					
						
							| 
									
										
										
										
											2023-03-01 19:58:44 +00:00
										 |  |  |       - CMD_DB_URL=postgres://hedgedoc:${HEDGEDOC_DB_PASSWORD}@hedgedoc-db:5432/hedgedoc
 | 
					
						
							| 
									
										
										
										
											2023-02-28 05:30:01 +00:00
										 |  |  |       - CMD_DOMAIN=${APP_DOMAIN}
 | 
					
						
							| 
									
										
										
										
											2023-03-01 19:58:44 +00:00
										 |  |  |       - CMD_URL_ADDPORT=${HEDGEDOC_ADDPORT}
 | 
					
						
							| 
									
										
										
										
											2023-02-28 05:30:01 +00:00
										 |  |  |     volumes:
 | 
					
						
							|  |  |  |       - ${APP_DATA_DIR}/data/hedgedoc-uploads:/hedgedoc/public/uploads
 | 
					
						
							|  |  |  |     ports:
 | 
					
						
							|  |  |  |       - ${APP_PORT}:3000
 | 
					
						
							|  |  |  |     restart: always
 | 
					
						
							|  |  |  |     depends_on:
 | 
					
						
							|  |  |  |       - hedgedoc-db
 | 
					
						
							| 
									
										
										
										
											2023-03-01 19:58:44 +00:00
										 |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 | 
					
						
							| 
									
										
										
										
											2023-02-28 05:30:01 +00:00
										 |  |  |     labels:
 | 
					
						
							| 
									
										
										
										
											2023-06-10 15:29:03 +00:00
										 |  |  |       # Main
 | 
					
						
							|  |  |  |       traefik.enable: true
 | 
					
						
							|  |  |  |       traefik.http.middlewares.hedgedoc-web-redirect.redirectscheme.scheme: https
 | 
					
						
							|  |  |  |       traefik.http.services.hedgedoc.loadbalancer.server.port: 3000
 | 
					
						
							|  |  |  |       # Web
 | 
					
						
							|  |  |  |       traefik.http.routers.hedgedoc-insecure.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.hedgedoc-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.hedgedoc-insecure.service: hedgedoc
 | 
					
						
							|  |  |  |       traefik.http.routers.hedgedoc-insecure.middlewares: hedgedoc-web-redirect
 | 
					
						
							|  |  |  |       # Websecure
 | 
					
						
							| 
									
										
										
										
											2023-02-28 05:30:01 +00:00
										 |  |  |       traefik.http.routers.hedgedoc.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.hedgedoc.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.hedgedoc.service: hedgedoc
 | 
					
						
							|  |  |  |       traefik.http.routers.hedgedoc.tls.certresolver: myresolver
 | 
					
						
							| 
									
										
										
										
											2023-06-10 15:29:03 +00:00
										 |  |  |       # Local domain
 | 
					
						
							|  |  |  |       traefik.http.routers.hedgedoc-local-insecure.rule: Host(`hedgedoc.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.hedgedoc-local-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.hedgedoc-local-insecure.service: hedgedoc
 | 
					
						
							|  |  |  |       traefik.http.routers.hedgedoc-local-insecure.middlewares: hedgedoc-web-redirect
 | 
					
						
							|  |  |  |       # Local domain secure
 | 
					
						
							|  |  |  |       traefik.http.routers.hedgedoc-local.rule: Host(`hedgedoc.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.hedgedoc-local.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.hedgedoc-local.service: hedgedoc
 | 
					
						
							|  |  |  |       traefik.http.routers.hedgedoc-local.tls: true
 | 
					
						
							| 
									
										
										
										
											2023-03-01 19:58:44 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-02-28 05:30:01 +00:00
										 |  |  |   hedgedoc-db:
 | 
					
						
							|  |  |  |     container_name: hedgedoc-db
 | 
					
						
							|  |  |  |     image: postgres:13.4-alpine
 | 
					
						
							|  |  |  |     restart: unless-stopped
 | 
					
						
							|  |  |  |     environment:
 | 
					
						
							|  |  |  |       - POSTGRES_USER=hedgedoc
 | 
					
						
							| 
									
										
										
										
											2023-03-01 19:58:44 +00:00
										 |  |  |       - POSTGRES_PASSWORD=${HEDGEDOC_DB_PASSWORD}
 | 
					
						
							| 
									
										
										
										
											2023-02-28 05:30:01 +00:00
										 |  |  |       - POSTGRES_DB=hedgedoc
 | 
					
						
							|  |  |  |     volumes:
 | 
					
						
							|  |  |  |       - ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 |