From 4a2478af255208eebd4df296ce54892fd8ee11b8 Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Wed, 14 May 2025 14:40:52 +0200 Subject: [PATCH] chore(service): formatting and cleanup of ryot --- templates/compose/ryot.yaml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/templates/compose/ryot.yaml b/templates/compose/ryot.yaml index c6472b789..f56a45d70 100644 --- a/templates/compose/ryot.yaml +++ b/templates/compose/ryot.yaml @@ -7,11 +7,10 @@ services: ryot: image: ignisda/ryot:v8 - pull_policy: always environment: - SERVICE_FQDN_RYOT_8000 - - DATABASE_URL=postgres://$SERVICE_USER_POSTGRES:$SERVICE_PASSWORD_POSTGRES@postgresql:5432/$POSTGRES_DB - - SERVER_ADMIN_ACCESS_TOKEN=$SERVICE_PASSWORD_64_RYOT + - DATABASE_URL=postgres://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@postgresql:5432/${POSTGRES_DB} + - SERVER_ADMIN_ACCESS_TOKEN=${SERVICE_PASSWORD_64_RYOT} - TZ=${TZ:-Europe/Amsterdam} depends_on: postgresql: @@ -25,17 +24,14 @@ services: postgresql: image: postgres:16-alpine volumes: - - postgresql-data:/var/lib/postgresql/data + - ryot_postgresql_data:/var/lib/postgresql/data environment: - - POSTGRES_USER=$SERVICE_USER_POSTGRES - - POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES - - POSTGRES_DB=${POSTGRES_DB:-ryot} + - POSTGRES_USER=${SERVICE_USER_POSTGRES} + - POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES} + - POSTGRES_DB=${POSTGRES_DB:-ryot-db} - TZ=${TZ:-Europe/Amsterdam} healthcheck: test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] interval: 5s timeout: 20s retries: 10 - -volumes: - postgresql-data: