2024-09-13 13:35:30 +08:00
|
|
|
services:
|
2024-09-13 14:30:41 +08:00
|
|
|
logto:
|
|
|
|
container_name: ${CONTAINER_NAME}
|
|
|
|
image: svhd/logto:1.19.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
|