diff --git a/blueprints/logto/docker-compose.yml b/blueprints/logto/docker-compose.yml index 04d7464f..2e05a7b8 100644 --- a/blueprints/logto/docker-compose.yml +++ b/blueprints/logto/docker-compose.yml @@ -1,14 +1,11 @@ services: app: + image: ghcr.io/logto-io/logto:1.41.0 + restart: unless-stopped depends_on: postgres: condition: service_healthy - image: ghcr.io/logto-io/logto:1.27.0 entrypoint: ["sh", "-c", "npm run cli db seed -- --swe && npm start"] - ports: - - 3001 - - 3002 - environment: TRUST_PROXY_HEADER: 1 DB_URL: postgres://logto:${LOGTO_POSTGRES_PASSWORD}@postgres:5432/logto @@ -18,20 +15,19 @@ services: - logto-connectors:/etc/logto/packages/core/connectors postgres: image: postgres:17-alpine - user: postgres - + restart: unless-stopped environment: POSTGRES_USER: logto POSTGRES_PASSWORD: ${LOGTO_POSTGRES_PASSWORD} + POSTGRES_DB: logto volumes: - postgres-data:/var/lib/postgresql/data healthcheck: - test: ["CMD-SHELL", "pg_isready"] + test: ["CMD-SHELL", "pg_isready -U logto -d logto"] interval: 10s timeout: 5s retries: 5 - volumes: logto-connectors: postgres-data: diff --git a/blueprints/logto/meta.json b/blueprints/logto/meta.json index 03bd1ded..60e7aedc 100644 --- a/blueprints/logto/meta.json +++ b/blueprints/logto/meta.json @@ -1,7 +1,7 @@ { "id": "logto", "name": "Logto", - "version": "1.27.0", + "version": "1.41.0", "description": "Logto is an open-source Identity and Access Management (IAM) platform designed to streamline Customer Identity and Access Management (CIAM) and Workforce Identity Management.", "logo": "logto.png", "links": { diff --git a/blueprints/logto/template.toml b/blueprints/logto/template.toml index 896a5d33..e8e420e6 100644 --- a/blueprints/logto/template.toml +++ b/blueprints/logto/template.toml @@ -1,7 +1,7 @@ [variables] main_domain = "${domain}" admin_domain = "${domain}" -postgres_password = "${password}" +postgres_password = "${password:32}" [config] mounts = [] @@ -17,6 +17,6 @@ port = 3_002 host = "${admin_domain}" [config.env] -LOGTO_ENDPOINT = "http://${admin_domain}" +LOGTO_ENDPOINT = "http://${main_domain}" LOGTO_ADMIN_ENDPOINT = "http://${admin_domain}" LOGTO_POSTGRES_PASSWORD = "${postgres_password}"