2925305ded
PostgreSQL backend, npm-network integration, uploads/db on /srv/firefly-iii/.
46 lines
977 B
YAML
46 lines
977 B
YAML
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
|