fix edgedb

This commit is contained in:
peaklabs-dev
2024-10-14 15:21:41 +02:00
parent abaccdf03d
commit b6cd54ccbc

View File

@@ -1,3 +1,4 @@
# ignore: true
# documentation: https://www.edgedb.com # documentation: https://www.edgedb.com
# slogan: An open-source database designed as a spiritual successor to SQL and the relational paradigm. Powered by the Postgres query engine under the hood. # slogan: An open-source database designed as a spiritual successor to SQL and the relational paradigm. Powered by the Postgres query engine under the hood.
# tags: db database sql # tags: db database sql
@@ -8,35 +9,30 @@ services:
edgedb: edgedb:
image: edgedb/edgedb image: edgedb/edgedb
environment: environment:
- SERVICE_FQDN_EDGEDB - SERVICE_FQDN_EDGEDB_5656
- EDGEDB_SERVER_ADMIN_UI=${EDGEDB_SERVER_ADMIN_UI:-enabled} - EDGEDB_SERVER_ADMIN_UI=${EDGEDB_SERVER_ADMIN_UI:-enabled}
- EDGEDB_SERVER_BACKEND_DSN=postgres://$SERVICE_USER_POSTGRES:$SERVICE_PASSWORD_POSTGRES@postgresql:5432/$POSTGRES_DB - EDGEDB_SERVER_BACKEND_DSN=postgres://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@postgresql:5432/${POSTGRES_DB:-edgedb}
- EDGEDB_SERVER_SECURITY=strict - EDGEDB_SERVER_SECURITY=${EDGEDB_SERVER_SECURITY:-strict}
- EDGEDB_SERVER_PASSWORD=$SERVICE_EDGEDB_SERVER_PASSWORD - EDGEDB_SERVER_PASSWORD=${SERVICE_PASSWORD_EDGEDB}
- EDGEDB_SERVER_TLS_CERT_MODE=generate_self_signed
# - EDGEDB_SERVER_TLS_CERT_FILE= # Ideally Coolify should generate its own certificates
# - EDGEDB_SERVER_TLS_KEY_FILE= # -- || --
- POSTGRES_DB=${POSTGRES_DB:-edgedb} - POSTGRES_DB=${POSTGRES_DB:-edgedb}
depends_on: depends_on:
postgresql: postgresql:
condition: service_healthy condition: service_healthy
volumes: volumes:
- "./dbschema:/dbschema" - edgedb-data:/dbschema
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5656/server/status/alive"] test: ["CMD", "curl", "-f", "http://localhost:5656/server/status/alive"]
interval: 5s interval: 5s
timeout: 20s timeout: 20s
retries: 10 retries: 10
ports:
- "5656:5656"
postgresql: postgresql:
image: postgres:16-alpine image: postgres:16-alpine
volumes: volumes:
- postgresql-data:/var/lib/postgresql/data - edgedb-postgresql-data:/var/lib/postgresql/data
environment: environment:
- POSTGRES_USER=$SERVICE_USER_POSTGRES - POSTGRES_USER=${SERVICE_USER_POSTGRES}
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES - POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
- POSTGRES_DB=${POSTGRES_DB:-edgedb} - POSTGRES_DB=${POSTGRES_DB:-edgedb}
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]