[Unit] Description=Podman container for Dawarich Rails App Requires=dawarich_postgis.service dawarich_redis.service After=dawarich_postgis.service dawarich_redis.service BindsTo=dawarich_postgis.service dawarich_redis.service AssertPathExists=/data/Databases/dawarich/public AssertPathExists=/data/Databases/dawarich/watched AssertPathExists=/data/Databases/dawarich/storage [Container] Pod=dawarich.pod ContainerName=dawarich_app 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=DAWARICH_APP_PORT=3000 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 Secret=geoapify-api-key,type=env,target=GEOAPIFY_API_KEY Environment=APPLICATION_HOSTS=localhost,127.0.0.1,::1,tracks.bugabinga.net Environment=TIME_ZONE=Europe/Berlin Environment=APPLICATION_PROTOCOL=https 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=MIN_MINUTES_SPENT_IN_CITY=60 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=web-entrypoint.sh Exec=bin/rails server -p 3000 -b '::' [Service] CPUQuota=50% MemoryMax=4G MemoryHigh=3G MemoryMin=1G Restart=on-failure TimeoutStartSec=300 [Install] WantedBy=default.target