diff --git a/firefly-iii/.env.example b/firefly-iii/.env.example new file mode 100644 index 0000000..e39dfe1 --- /dev/null +++ b/firefly-iii/.env.example @@ -0,0 +1,6 @@ +# Generate with: openssl rand -hex 16 | head -c 32 +APP_KEY= + +APP_URL=https://firefly.kolpacksoftware.com + +DB_PASSWORD= diff --git a/firefly-iii/docker-compose.yaml b/firefly-iii/docker-compose.yaml new file mode 100644 index 0000000..8b3aaa3 --- /dev/null +++ b/firefly-iii/docker-compose.yaml @@ -0,0 +1,45 @@ +services: + app: + image: fireflyiii/core:latest + container_name: firefly-iii + restart: unless-stopped + depends_on: + - db + environment: + - APP_KEY=${APP_KEY} + - APP_URL=${APP_URL} + - TRUSTED_PROXIES=** + - DB_CONNECTION=pgsql + - DB_HOST=db + - DB_PORT=5432 + - DB_DATABASE=firefly + - DB_USERNAME=firefly + - DB_PASSWORD=${DB_PASSWORD} + - TZ=America/New_York + volumes: + - /srv/firefly-iii/upload:/var/www/html/storage/upload + ports: + - 8282:8080 + networks: + - default + - internal + + db: + image: postgres:16-alpine + container_name: firefly-iii-db + restart: unless-stopped + environment: + - POSTGRES_DB=firefly + - POSTGRES_USER=firefly + - POSTGRES_PASSWORD=${DB_PASSWORD} + volumes: + - /srv/firefly-iii/db:/var/lib/postgresql/data + networks: + - internal + +networks: + default: + external: + name: npm-network + internal: + driver: bridge