| 
									
										
										
										
											2022-07-28 17:46:12 +00:00
										 |  |  | version: "3.7"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | services:
 | 
					
						
							|  |  |  |   db-joplin:
 | 
					
						
							|  |  |  |     container_name: db-joplin
 | 
					
						
							|  |  |  |     image: postgres:14.2
 | 
					
						
							|  |  |  |     volumes:
 | 
					
						
							|  |  |  |       - ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
 | 
					
						
							|  |  |  |     restart: unless-stopped
 | 
					
						
							|  |  |  |     environment:
 | 
					
						
							| 
									
										
										
										
											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_DB=joplin
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   joplin:
 | 
					
						
							|  |  |  |     container_name: joplin
 | 
					
						
							|  |  |  |     image: florider89/joplin-server:2.7.4
 | 
					
						
							|  |  |  |     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:
 | 
					
						
							|  |  |  |       traefik.enable: ${APP_EXPOSED}
 | 
					
						
							|  |  |  |       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
 | 
					
						
							|  |  |  |       traefik.http.services.joplin.loadbalancer.server.port: 22300
 | 
					
						
							|  |  |  |       traefik.http.services.joplin.loadbalancer.passhostheader: true
 | 
					
						
							|  |  |  |       traefik.http.middlewares.joplin-sslheader.headers.customrequestheaders.X-Forwarded-Proto: http
 | 
					
						
							|  |  |  |       traefik.http.routers.joplin-sslheader.middlewares: joplin-sslheader@docker
 |