Initial commit
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
commit
793ee4598c
9 changed files with 297 additions and 0 deletions
132
templates/app.env.j2
Normal file
132
templates/app.env.j2
Normal file
|
@ -0,0 +1,132 @@
|
|||
APP_ENV=local
|
||||
APP_DEBUG=false
|
||||
|
||||
SITE_OWNER={{ firefly_site_owner }}
|
||||
|
||||
APP_KEY={{ firefly_app_key }}
|
||||
|
||||
DEFAULT_LANGUAGE={{ firefly_language }}
|
||||
DEFAULT_LOCALE=equal
|
||||
|
||||
TZ={{ firefly_tz }}
|
||||
|
||||
TRUSTED_PROXIES=*
|
||||
|
||||
LOG_CHANNEL=stack
|
||||
|
||||
APP_LOG_LEVEL=notice
|
||||
|
||||
AUDIT_LOG_LEVEL=emergency
|
||||
AUDIT_LOG_CHANNEL=
|
||||
PAPERTRAIL_HOST=
|
||||
PAPERTRAIL_PORT=
|
||||
|
||||
# Database credentials. Make sure the database exists. I recommend a dedicated user for Firefly III
|
||||
# For other database types, please see the FAQ: https://docs.firefly-iii.org/firefly-iii/faq/self-hosted/#i-want-to-use-sqlite
|
||||
# If you use Docker or similar, you can set these variables from a file by appending them with _FILE
|
||||
# Use "pgsql" for PostgreSQL
|
||||
# Use "mysql" for MySQL and MariaDB.
|
||||
# Use "sqlite" for SQLite.
|
||||
DB_CONNECTION=pgsql
|
||||
DB_HOST=db
|
||||
DB_PORT=5432
|
||||
DB_DATABASE={{ firefly_db_database }}
|
||||
DB_USERNAME={{ firefly_db_username }}
|
||||
DB_PASSWORD={{ firefly_db_password }}
|
||||
DB_SOCKET=
|
||||
|
||||
PGSQL_SSL_MODE=prefer
|
||||
PGSQL_SCHEMA=public
|
||||
|
||||
CACHE_DRIVER=file
|
||||
SESSION_DRIVER=file
|
||||
|
||||
REDIS_SCHEME=tcp
|
||||
REDIS_PATH=
|
||||
REDIS_HOST=redis
|
||||
REDIS_PORT=6379
|
||||
REDIS_USERNAME=firefly
|
||||
REDIS_PASSWORD=
|
||||
REDIS_DB="0"
|
||||
REDIS_CACHE_DB="1"
|
||||
|
||||
COOKIE_PATH="/"
|
||||
COOKIE_DOMAIN=
|
||||
COOKIE_SECURE=false
|
||||
COOKIE_SAMESITE=lax
|
||||
|
||||
MAIL_MAILER=log
|
||||
MAIL_HOST=null
|
||||
MAIL_PORT=2525
|
||||
MAIL_FROM=changeme@example.com
|
||||
MAIL_USERNAME=null
|
||||
MAIL_PASSWORD=null
|
||||
MAIL_ENCRYPTION=null
|
||||
MAIL_SENDMAIL_COMMAND=
|
||||
MAILGUN_DOMAIN=
|
||||
MAILGUN_SECRET=
|
||||
MAILGUN_ENDPOINT=api.mailgun.net
|
||||
MANDRILL_SECRET=
|
||||
SPARKPOST_SECRET=
|
||||
SEND_ERROR_MESSAGE=true
|
||||
SEND_REPORT_JOURNALS=true
|
||||
|
||||
ENABLE_EXTERNAL_MAP=false
|
||||
ENABLE_EXTERNAL_RATES=false
|
||||
MAP_DEFAULT_LAT=51.983333
|
||||
MAP_DEFAULT_LONG=5.916667
|
||||
MAP_DEFAULT_ZOOM=6
|
||||
|
||||
VALID_URL_PROTOCOLS=
|
||||
|
||||
AUTHENTICATION_GUARD=web
|
||||
AUTHENTICATION_GUARD_HEADER=REMOTE_USER
|
||||
AUTHENTICATION_GUARD_EMAIL=
|
||||
|
||||
PASSPORT_PRIVATE_KEY=
|
||||
PASSPORT_PUBLIC_KEY=
|
||||
|
||||
CUSTOM_LOGOUT_URL=
|
||||
|
||||
DISABLE_FRAME_HEADER=false
|
||||
DISABLE_CSP_HEADER=false
|
||||
TRACKER_SITE_ID=
|
||||
TRACKER_URL=
|
||||
|
||||
ALLOW_WEBHOOKS=false
|
||||
|
||||
STATIC_CRON_TOKEN={{ firefly_static_cron_token }}
|
||||
|
||||
DKR_BUILD_LOCALE=false
|
||||
DKR_CHECK_SQLITE=true
|
||||
DKR_RUN_MIGRATION=true
|
||||
DKR_RUN_UPGRADE=true
|
||||
DKR_RUN_VERIFY=true
|
||||
DKR_RUN_REPORT=true
|
||||
DKR_RUN_PASSPORT_INSTALL=true
|
||||
|
||||
APP_NAME=FireflyIII
|
||||
BROADCAST_DRIVER=log
|
||||
QUEUE_DRIVER=sync
|
||||
CACHE_PREFIX=firefly
|
||||
PUSHER_KEY=
|
||||
IPINFO_TOKEN=
|
||||
PUSHER_SECRET=
|
||||
PUSHER_ID=
|
||||
DEMO_USERNAME=
|
||||
DEMO_PASSWORD=
|
||||
FIREFLY_III_LAYOUT=v1
|
||||
|
||||
#
|
||||
# If you have trouble configuring your Firefly III installation, DON'T BOTHER setting this variable.
|
||||
# It won't work. It doesn't do ANYTHING. Don't believe the lies you read online. I'm not joking.
|
||||
# This configuration value WILL NOT HELP.
|
||||
#
|
||||
# Notable exception to this rule is Synology, which, according to some users, will use APP_URL to rewrite stuff.
|
||||
#
|
||||
# This variable is ONLY used in some of the emails Firefly III sends around. Nowhere else.
|
||||
# So when configuring anything WEB related this variable doesn't do anything. Nothing
|
||||
#
|
||||
# If you're stuck I understand you get desperate but look SOMEWHERE ELSE.
|
||||
#
|
||||
APP_URL=http://localhost
|
5
templates/db.env.j2
Normal file
5
templates/db.env.j2
Normal file
|
@ -0,0 +1,5 @@
|
|||
POSTGRES_USER={{ firefly_db_username }}
|
||||
POSTGRES_PASSWORD={{ firefly_db_password }}
|
||||
POSTGRES_DB={{ firefly_db_database }}
|
||||
POSTGRES_INITDB_ARGS="--data-checksums"
|
||||
POSTGRES_HOST_AUTH_METHOD=scram-sha-256
|
40
templates/docker-compose.yml.j2
Normal file
40
templates/docker-compose.yml.j2
Normal file
|
@ -0,0 +1,40 @@
|
|||
---
|
||||
{{ ansible_managed | comment }}
|
||||
services:
|
||||
app:
|
||||
image: fireflyiii/core:{{ firefly_version }}
|
||||
hostname: app
|
||||
container_name: firefly_iii_core
|
||||
restart: always
|
||||
volumes:
|
||||
- {{ firefly_home }}/app/upload:/var/www/html/storage/upload
|
||||
env_file: /etc/firefly/app.env
|
||||
networks:
|
||||
- firefly_iii
|
||||
ports:
|
||||
- {{ firefly_port }}:8080
|
||||
depends_on:
|
||||
- db
|
||||
db:
|
||||
image: postgres:17
|
||||
hostname: db
|
||||
container_name: firefly_iii_db
|
||||
restart: always
|
||||
env_file: /etc/firefly/db.env
|
||||
networks:
|
||||
- firefly_iii
|
||||
volumes:
|
||||
- {{ firefly_home }}/db/data:/var/lib/postgresql/data
|
||||
- {{ firefly_home }}/db/backup:/var/lib/postgresql/backup
|
||||
|
||||
cron:
|
||||
image: alpine
|
||||
restart: always
|
||||
container_name: firefly_iii_cron
|
||||
command: sh -c "echo \"0 3 * * * wget -qO- http://app:8080/api/v1/cron/{{ firefly_static_cron_token }}\" | crontab - && crond -f -L /dev/stdout"
|
||||
networks:
|
||||
- firefly_iii
|
||||
|
||||
networks:
|
||||
firefly_iii:
|
||||
driver: bridge
|
Loading…
Add table
Add a link
Reference in a new issue