This repository has been archived on 2021-12-24. You can view files and clone it, but cannot push or open issues/pull-requests.
self-hosting/firefly/docker-compose.yml

67 lines
1.4 KiB
YAML
Raw Normal View History

2021-04-23 15:16:51 +02:00
version: '2.4'
2021-01-04 21:28:13 +01:00
services:
app:
2021-01-11 09:48:47 +01:00
build:
context: '.'
2021-01-11 10:01:03 +01:00
args:
- 'LOCALE=$DEFAULT_LOCALE'
2021-04-23 14:29:34 +02:00
image: 'chewingbever/firefly-iii-cron:latest'
2021-01-11 09:48:47 +01:00
restart: 'always'
2021-04-23 14:29:34 +02:00
2021-01-14 17:20:38 +01:00
healthcheck:
test: 'curl -f localhost:8080 || exit 1'
interval: '1m'
timeout: '10s'
retries: 3
start_period: '10s'
2021-01-04 21:28:13 +01:00
depends_on:
2021-01-14 17:20:38 +01:00
db:
condition: 'service_healthy'
redis:
condition: 'service_healthy'
2021-04-23 14:29:34 +02:00
2021-01-04 21:28:13 +01:00
env_file:
2021-01-11 09:48:47 +01:00
- '.env'
2021-01-04 21:35:01 +01:00
networks:
2021-01-11 09:48:47 +01:00
- 'nginx'
- 'default'
2021-01-04 21:28:13 +01:00
volumes:
2021-01-11 09:48:47 +01:00
- 'upload:/var/www/html/storage/upload'
2021-01-04 21:28:13 +01:00
db:
2021-04-23 14:29:34 +02:00
image: 'postgres:13.2-alpine'
2021-01-11 09:48:47 +01:00
restart: 'always'
2021-04-23 14:53:05 +02:00
2021-01-14 17:20:38 +01:00
healthcheck:
2021-04-23 14:29:34 +02:00
test: 'pg_isready -U firefly'
2021-01-14 17:20:38 +01:00
interval: '10s'
timeout: '5s'
retries: 5
2021-04-23 14:29:34 +02:00
start_period: '0s'
2021-01-04 21:28:13 +01:00
2021-01-11 09:48:47 +01:00
environment:
2021-04-23 14:29:34 +02:00
- 'POSTGRES_DB=firefly'
- 'POSTGRES_PASSWORD=firefly'
- 'POSTGRES_USER=firefly'
2021-01-04 21:28:13 +01:00
volumes:
2021-01-11 09:48:47 +01:00
- 'db-data:/var/lib/postgresql/data'
2021-01-04 21:28:13 +01:00
redis:
2021-04-23 14:29:34 +02:00
image: 'redis:6.0.12-alpine'
2021-01-11 09:48:47 +01:00
restart: 'always'
2021-04-23 14:57:04 +02:00
2021-01-14 17:20:38 +01:00
healthcheck:
test: 'redis-cli -h localhost ping'
interval: '10s'
timeout: '5s'
retries: 3
2021-01-04 21:28:13 +01:00
2021-01-04 21:35:01 +01:00
networks:
nginx:
2021-01-11 09:48:47 +01:00
external: true
2021-01-04 21:35:01 +01:00
2021-01-04 21:28:13 +01:00
volumes:
upload:
db-data: