Luigit
repositories / bugabinga.net

bugabinga.net

personal infrastructure for bugabinga!

owned by admin

modules/klops/quadlets/dawarich_sidekiq.container

Raw
[Unit]
Description=Podman container for Dawarich Sidekiq Worker
Requires=dawarich_app.service dawarich_postgis.service dawarich_redis.service
After=dawarich_app.service dawarich_postgis.service dawarich_redis.service
BindsTo=dawarich_app.service dawarich_postgis.service dawarich_redis.service

[Container]
Pod=dawarich.pod
ContainerName=dawarich_sidekiq
Image=docker.io/freikin/dawarich:latest
AutoUpdate=registry
Volume=/data/Databases/dawarich/public:/var/app/public:z
Volume=/data/Databases/dawarich/watched:/var/app/tmp/imports/watched:z
Volume=/data/Databases/dawarich/storage:/var/app/storage:z
Environment=RAILS_ENV=production
Environment=REDIS_URL=redis://dawarich_redis:6379
Environment=DATABASE_HOST=dawarich_postgis
Environment=DATABASE_PORT=5432
Environment=DATABASE_USERNAME=postgres
Secret=dawarich-db-password,type=env,target=DATABASE_PASSWORD
Environment=DATABASE_NAME=dawarich_production
Secret=dawarich-secret-key-base,type=env,target=SECRET_KEY_BASE
Environment=BACKGROUND_PROCESSING_CONCURRENCY=10
Secret=geoapify-api-key,type=env,target=GEOAPIFY_API_KEY
Environment=APPLICATION_HOSTS=localhost,127.0.0.1,::1,tracks.bugabinga.net
Environment=SELF_HOSTED=true
Environment=STORE_GEODATA=true
Environment=RAILS_LOG_TO_STDOUT=true
Environment=PROMETHEUS_EXPORTER_ENABLED=false
Environment=PROMETHEUS_EXPORTER_HOST=0.0.0.0
Environment=PROMETHEUS_EXPORTER_PORT=9394
Environment=SMTP_SERVER=box.bugabinga.net
Environment=SMTP_PORT=465
Environment=SMTP_DOMAIN=bugabinga.net
Environment=SMTP_FROM=tracks@bugabinga.net
Secret=smtp-user,type=env,target=SMTP_USERNAME
Secret=smtp-pass,type=env,target=SMTP_PASSWORD
Entrypoint=sidekiq-entrypoint.sh
Exec=sidekiq

[Service]
Restart=on-failure
TimeoutStartSec=300

[Install]
WantedBy=default.target