| 
									
										
										
										
											2023-06-10 14:46:05 +00:00
										 |  |  | version: "3.9"
 | 
					
						
							| 
									
										
										
										
											2022-07-28 17:46:12 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | services:
 | 
					
						
							|  |  |  |   firefly-iii:
 | 
					
						
							| 
									
										
										
										
											2023-06-20 18:16:15 +00:00
										 |  |  |     image: fireflyiii/core:version-6
 | 
					
						
							| 
									
										
										
										
											2022-07-28 17:46:12 +00:00
										 |  |  |     container_name: firefly-iii
 | 
					
						
							|  |  |  |     restart: unless-stopped
 | 
					
						
							|  |  |  |     volumes:
 | 
					
						
							|  |  |  |       - ${APP_DATA_DIR}/data/uplodad:/var/www/html/storage/upload
 | 
					
						
							|  |  |  |     ports:
 | 
					
						
							|  |  |  |       - ${APP_PORT}:8080
 | 
					
						
							|  |  |  |     depends_on:
 | 
					
						
							|  |  |  |       - firefly-iii-db
 | 
					
						
							|  |  |  |     environment:
 | 
					
						
							|  |  |  |       - APP_ENV=local
 | 
					
						
							|  |  |  |       - APP_DEBUG=false
 | 
					
						
							|  |  |  |       - SITE_OWNER=${EMAIL}
 | 
					
						
							|  |  |  |       - APP_KEY=${APP_KEY}
 | 
					
						
							| 
									
										
										
										
											2023-06-12 12:23:17 +00:00
										 |  |  |       - STATIC_CRON_TOKEN=${STATIC_CRON_TOKEN}
 | 
					
						
							| 
									
										
										
										
											2022-07-28 17:46:12 +00:00
										 |  |  |       - TZ=${TZ}
 | 
					
						
							|  |  |  |       - TRUSTED_PROXIES=**
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       # Database
 | 
					
						
							|  |  |  |       - DB_CONNECTION=mysql
 | 
					
						
							|  |  |  |       - DB_HOST=firefly-iii-db
 | 
					
						
							|  |  |  |       - DB_PORT=3306
 | 
					
						
							|  |  |  |       - DB_DATABASE=firefly
 | 
					
						
							|  |  |  |       - DB_USERNAME=firefly
 | 
					
						
							|  |  |  |       - DB_PASSWORD=${MYSQL_PASSWORD}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       # Cookie settings
 | 
					
						
							|  |  |  |       - COOKIE_PATH="/"
 | 
					
						
							|  |  |  |       - COOKIE_DOMAIN=
 | 
					
						
							|  |  |  |       - COOKIE_SECURE=false
 | 
					
						
							|  |  |  |       - COOKIE_SAMESITE=lax
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       - APP_NAME=FireflyIII
 | 
					
						
							|  |  |  |       - BROADCAST_DRIVER=log
 | 
					
						
							|  |  |  |       - QUEUE_DRIVER=sync
 | 
					
						
							|  |  |  |       - CACHE_PREFIX=firefly
 | 
					
						
							|  |  |  |       - IS_HEROKU=false
 | 
					
						
							|  |  |  |       - FIREFLY_III_LAYOUT=v1
 | 
					
						
							|  |  |  |       - APP_URL=http://localhost:${APP_PORT}
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 | 
					
						
							| 
									
										
										
										
											2022-11-11 19:33:58 +00:00
										 |  |  |     labels:
 | 
					
						
							| 
									
										
										
										
											2023-06-10 14:46:05 +00:00
										 |  |  |       # Main
 | 
					
						
							|  |  |  |       traefik.enable: true
 | 
					
						
							|  |  |  |       traefik.http.middlewares.firefly-iii-web-redirect.redirectscheme.scheme: https
 | 
					
						
							|  |  |  |       traefik.http.services.firefly-iii.loadbalancer.server.port: 8080
 | 
					
						
							|  |  |  |       # Web
 | 
					
						
							|  |  |  |       traefik.http.routers.firefly-iii-insecure.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.firefly-iii-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.firefly-iii-insecure.service: firefly-iii
 | 
					
						
							|  |  |  |       traefik.http.routers.firefly-iii-insecure.middlewares: firefly-iii-web-redirect
 | 
					
						
							|  |  |  |       # Websecure
 | 
					
						
							| 
									
										
										
										
											2022-11-11 19:33:58 +00:00
										 |  |  |       traefik.http.routers.firefly-iii.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.firefly-iii.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.firefly-iii.service: firefly-iii
 | 
					
						
							|  |  |  |       traefik.http.routers.firefly-iii.tls.certresolver: myresolver
 | 
					
						
							| 
									
										
										
										
											2023-06-10 14:46:05 +00:00
										 |  |  |       # Local domain
 | 
					
						
							|  |  |  |       traefik.http.routers.firefly-iii-local-insecure.rule: Host(`firefly-iii.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.firefly-iii-local-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.firefly-iii-local-insecure.service: firefly-iii
 | 
					
						
							|  |  |  |       traefik.http.routers.firefly-iii-local-insecure.middlewares: firefly-iii-web-redirect
 | 
					
						
							|  |  |  |       # Local domain secure
 | 
					
						
							|  |  |  |       traefik.http.routers.firefly-iii-local.rule: Host(`firefly-iii.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.firefly-iii-local.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.firefly-iii-local.service: firefly-iii
 | 
					
						
							|  |  |  |       traefik.http.routers.firefly-iii-local.tls: true
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-07-28 17:46:12 +00:00
										 |  |  |   firefly-iii-db:
 | 
					
						
							|  |  |  |     container_name: firefly-iii-db
 | 
					
						
							| 
									
										
										
										
											2023-06-10 14:46:05 +00:00
										 |  |  |     image: mariadb
 | 
					
						
							| 
									
										
										
										
											2022-07-28 17:46:12 +00:00
										 |  |  |     hostname: fireflyiii-db
 | 
					
						
							|  |  |  |     restart: unless-stopped
 | 
					
						
							|  |  |  |     environment:
 | 
					
						
							|  |  |  |       - MYSQL_RANDOM_ROOT_PASSWORD=yes
 | 
					
						
							|  |  |  |       - MYSQL_USER=firefly
 | 
					
						
							|  |  |  |       - MYSQL_PASSWORD=${MYSQL_PASSWORD}
 | 
					
						
							|  |  |  |       - MYSQL_DATABASE=firefly
 | 
					
						
							|  |  |  |     volumes:
 | 
					
						
							|  |  |  |       - ${APP_DATA_DIR}/data/db:/var/lib/mysql
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 | 
					
						
							| 
									
										
										
										
											2023-06-12 12:23:17 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |   firefly-iii-cron:
 | 
					
						
							|  |  |  |     container_name: firefly-iii-cron
 | 
					
						
							|  |  |  |     image: alpine
 | 
					
						
							|  |  |  |     command: sh -c "echo \"0 3 * * * wget -qO- http://${APP_DOMAIN}/api/v1/cron/${STATIC_CRON_TOKEN}\" | crontab - && crond -f -L /dev/stdout"
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 |