| 
									
										
										
										
											2023-04-04 06:11:09 +00:00
										 |  |  | version: "3.7"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | services:
 | 
					
						
							|  |  |  |   peppermint:
 | 
					
						
							|  |  |  |     image: pepperlabs/peppermint:latest
 | 
					
						
							|  |  |  |     container_name: peppermint
 | 
					
						
							|  |  |  |     environment:
 | 
					
						
							|  |  |  |       - DB_USERNAME=tipi
 | 
					
						
							|  |  |  |       - DB_PASSWORD=${PEPPERMINT_DB_PASSWORD}
 | 
					
						
							|  |  |  |       - DB_HOST=peppermint-db
 | 
					
						
							| 
									
										
										
										
											2024-02-08 07:06:42 +00:00
										 |  |  |       - API_URL={APP_PROTOCOL:-http}://${PEPPERMINT_DOMAIN_API}
 | 
					
						
							| 
									
										
										
										
											2023-04-04 06:11:09 +00:00
										 |  |  |     restart: unless-stopped
 | 
					
						
							|  |  |  |     ports:
 | 
					
						
							| 
									
										
										
										
											2024-02-08 07:06:42 +00:00
										 |  |  |       - ${APP_PORT}:3000
 | 
					
						
							|  |  |  |       - 8217:5003
 | 
					
						
							| 
									
										
										
										
											2023-04-04 06:11:09 +00:00
										 |  |  |     depends_on:
 | 
					
						
							|  |  |  |       - peppermint-db
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 | 
					
						
							|  |  |  |     labels:
 | 
					
						
							| 
									
										
										
										
											2023-06-18 16:02:29 +00:00
										 |  |  |       # Main
 | 
					
						
							|  |  |  |       traefik.enable: true
 | 
					
						
							|  |  |  |       traefik.http.middlewares.peppermint-web-redirect.redirectscheme.scheme: https
 | 
					
						
							| 
									
										
										
										
											2024-02-08 07:06:42 +00:00
										 |  |  |       traefik.http.services.peppermint.loadbalancer.server.port: 3000
 | 
					
						
							| 
									
										
										
										
											2023-06-18 16:02:29 +00:00
										 |  |  |       # Web
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-insecure.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-insecure.service: peppermint
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-insecure.middlewares: peppermint-web-redirect
 | 
					
						
							|  |  |  |       # Websecure
 | 
					
						
							| 
									
										
										
										
											2023-04-04 06:11:09 +00:00
										 |  |  |       traefik.http.routers.peppermint.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint.service: peppermint
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint.tls.certresolver: myresolver
 | 
					
						
							| 
									
										
										
										
											2023-06-18 16:02:29 +00:00
										 |  |  |       # Local domain
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-local-insecure.rule: Host(`peppermint.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-local-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-local-insecure.service: peppermint
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-local-insecure.middlewares: peppermint-web-redirect
 | 
					
						
							|  |  |  |       # Local domain secure
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-local.rule: Host(`peppermint.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-local.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-local.service: peppermint
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-local.tls: true
 | 
					
						
							| 
									
										
										
										
											2024-02-08 07:06:42 +00:00
										 |  |  |       #API URL
 | 
					
						
							|  |  |  |       traefik.http.middlewares.peppermint-api-web-redirect.redirectscheme.scheme: https
 | 
					
						
							|  |  |  |       traefik.http.services.peppermint-api.loadbalancer.server.port: 5003
 | 
					
						
							|  |  |  |       # Web
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-api-insecure.rule: Host(`${PEPPERMINT_DOMAIN_API}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-api-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-api-insecure.service: peppermint
 | 
					
						
							|  |  |  |       traefik.http.routers.ppeppermint-api-insecure.middlewares: peppermint-api-web-redirect
 | 
					
						
							|  |  |  |       # Websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-api.rule: Host(`${PEPPERMINT_DOMAIN_API}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-api.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-api.service: peppermint
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-api.tls.certresolver: myresolver
 | 
					
						
							|  |  |  |       # Local domain
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-api-local-insecure.rule: Host(`peppermintapi.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-api-local-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-api-local-insecure.service: peppermint
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-api-local-insecure.middlewares: peppermint-api-web-redirect
 | 
					
						
							|  |  |  |       # Local domain secure
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-api-local.rule: Host(`peppermintapi.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-api-local.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-api-local.service: peppermint
 | 
					
						
							|  |  |  |       traefik.http.routers.peppermint-api-local.tls: true
 | 
					
						
							| 
									
										
										
										
											2023-04-04 06:11:09 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |   peppermint-db:
 | 
					
						
							|  |  |  |     container_name: peppermint-db
 | 
					
						
							|  |  |  |     image: postgres:latest
 | 
					
						
							|  |  |  |     restart: unless-stopped
 | 
					
						
							|  |  |  |     environment:
 | 
					
						
							|  |  |  |       - POSTGRES_USER=tipi
 | 
					
						
							|  |  |  |       - POSTGRES_PASSWORD=${PEPPERMINT_DB_PASSWORD}
 | 
					
						
							|  |  |  |       - POSTGRES_DB=peppermint
 | 
					
						
							|  |  |  |     volumes:
 | 
					
						
							|  |  |  |       - ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 | 
					
						
							|  |  |  | 
 |