| 
									
										
										
										
											2022-07-28 17:46:12 +00:00
										 |  |  | version: "3.7"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | services:
 | 
					
						
							|  |  |  |   joplin:
 | 
					
						
							|  |  |  |     container_name: joplin
 | 
					
						
							| 
									
										
										
										
											2023-11-19 22:56:03 +00:00
										 |  |  |     image: florider89/joplin-server:2.13.5
 | 
					
						
							| 
									
										
										
										
											2022-07-28 17:46:12 +00:00
										 |  |  |     restart: unless-stopped
 | 
					
						
							|  |  |  |     depends_on:
 | 
					
						
							|  |  |  |       - db-joplin
 | 
					
						
							|  |  |  |     ports:
 | 
					
						
							|  |  |  |       - ${APP_PORT}:22300
 | 
					
						
							|  |  |  |     dns:
 | 
					
						
							|  |  |  |       - ${DNS_IP}
 | 
					
						
							|  |  |  |     environment:
 | 
					
						
							|  |  |  |       - APP_PORT=22300
 | 
					
						
							| 
									
										
										
										
											2022-09-09 20:44:13 +00:00
										 |  |  |       - APP_BASE_URL=${APP_PROTOCOL:-http}://${APP_DOMAIN}/
 | 
					
						
							| 
									
										
										
										
											2022-07-28 17:46:12 +00:00
										 |  |  |       - DB_CLIENT=pg
 | 
					
						
							| 
									
										
										
										
											2022-09-09 19:51:53 +00:00
										 |  |  |       - POSTGRES_PASSWORD=${JOPLIN_DB_PASSWORD}
 | 
					
						
							| 
									
										
										
										
											2022-07-28 17:46:12 +00:00
										 |  |  |       - POSTGRES_USER=tipi
 | 
					
						
							|  |  |  |       - POSTGRES_DATABASE=joplin
 | 
					
						
							|  |  |  |       - POSTGRES_PORT=5432
 | 
					
						
							|  |  |  |       - POSTGRES_HOST=db-joplin
 | 
					
						
							|  |  |  |       - MAX_TIME_DRIFT=0
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 | 
					
						
							| 
									
										
										
										
											2022-09-09 19:51:53 +00:00
										 |  |  |     labels:
 | 
					
						
							| 
									
										
										
										
											2023-06-10 15:29:03 +00:00
										 |  |  |       # Main
 | 
					
						
							|  |  |  |       traefik.enable: true
 | 
					
						
							|  |  |  |       traefik.http.middlewares.joplin-web-redirect.redirectscheme.scheme: https
 | 
					
						
							|  |  |  |       traefik.http.services.joplin.loadbalancer.passhostheader: true
 | 
					
						
							|  |  |  |       traefik.http.services.joplin.loadbalancer.server.port: 22300
 | 
					
						
							|  |  |  |       # Web
 | 
					
						
							|  |  |  |       traefik.http.routers.joplin-insecure.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.joplin-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.joplin-insecure.service: joplin
 | 
					
						
							|  |  |  |       traefik.http.routers.joplin-insecure.middlewares: joplin-web-redirect
 | 
					
						
							|  |  |  |       # Websecure
 | 
					
						
							| 
									
										
										
										
											2022-09-09 19:51:53 +00:00
										 |  |  |       traefik.http.routers.joplin.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.joplin.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.joplin.service: joplin
 | 
					
						
							|  |  |  |       traefik.http.routers.joplin.tls.certresolver: myresolver
 | 
					
						
							| 
									
										
										
										
											2023-06-10 15:29:03 +00:00
										 |  |  |       # Local domain
 | 
					
						
							|  |  |  |       traefik.http.routers.joplin-local-insecure.rule: Host(`joplin.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.joplin-local-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.joplin-local-insecure.service: joplin
 | 
					
						
							|  |  |  |       traefik.http.routers.joplin-local-insecure.middlewares: joplin-web-redirect
 | 
					
						
							|  |  |  |       # Local domain secure
 | 
					
						
							|  |  |  |       traefik.http.routers.joplin-local.rule: Host(`joplin.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.joplin-local.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.joplin-local.service: joplin
 | 
					
						
							|  |  |  |       traefik.http.routers.joplin-local.tls: true
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-13 21:06:59 +00:00
										 |  |  |   db-joplin:
 | 
					
						
							|  |  |  |     container_name: db-joplin
 | 
					
						
							|  |  |  |     image: postgres:14.2
 | 
					
						
							|  |  |  |     volumes:
 | 
					
						
							|  |  |  |       - ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
 | 
					
						
							|  |  |  |     restart: unless-stopped
 | 
					
						
							|  |  |  |     environment:
 | 
					
						
							|  |  |  |       - POSTGRES_PASSWORD=${JOPLIN_DB_PASSWORD}
 | 
					
						
							|  |  |  |       - POSTGRES_USER=tipi
 | 
					
						
							|  |  |  |       - POSTGRES_DB=joplin
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 |