services: logto: container_name: ${CONTAINER_NAME} image: svhd/logto:1.20.0 networks: - 1panel-network ports: - ${PANEL_APP_PORT_HTTP}:3002 - ${PANEL_APP_PORT_HTTP_LOGTO}:3001 entrypoint: ["sh", "-c", "npm run cli db seed -- --swe && npm start"] environment: - TRUST_PROXY_HEADER=1 - DB_URL=postgres://${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@${PANEL_DB_HOST}:${PANEL_DB_PORT}/${PANEL_DB_NAME} - ENDPOINT=${LOGTO_ENDPOINT_URL} - ADMIN_ENDPOINT=${LOGTO_ADMIN_ENDPOINT_URL} labels: createdBy: "Apps" networks: 1panel-network: external: true