[Unit] Description = "Castopod Container" Wants=generate_secrets.service After=generate_secrets.service [Container] ContainerName = "${castopod_container_name}" Image = "docker.io/castopod/castopod:${castopod_version}" Volume = ${castopod_media_volume_name}.volume:/var/www/castopod/public/media:z Network = ${castopod_frontend_network_name}.network Network = ${castopod_backend_network_name}.network Environment=CP_DATABASE_HOSTNAME=${mariadb_container_name} Environment=CP_DATABASE_NAME=${castopod_db_name} Environment=CP_DATABASE_USERNAME=${castopod_db_user} Environment=CP_BASEURL=${castopod_base_url} Environment=CP_CACHE_HANDLER=redis Environment=CP_REDIS_HOST=${valkey_container_name} EnvironmentFile=${secrets_path}/castopod-mariadb-password.env EnvironmentFile=${secrets_path}/castopod-valkey.env EnvironmentFile=${secrets_path}/castopod-analytics.env [Service] Restart=on-failure [Install] WantedBy=default.target