justkiraHOBBY
5 months ago
version: "3.9"
services:
app:
depends_on:
postgres:
condition: service_healthy
image: svhd/logto:${TAG-latest}
entrypoint: ["sh", "-c", "npm run cli db seed -- --swe && npm start"]
ports:
- 3001:3001
- 3002:3002
environment:
- TRUST_PROXY_HEADER=1
- DB_URL=postgres://postgres:p0stgr3s@postgres:5432/logto
# Mandatory for GitPod to map host env to the container, thus GitPod can dynamically configure the public URL of Logto;
# Or, you can leverage it for local testing.
- ENDPOINT
- ADMIN_ENDPOINT
postgres:
image: postgres:17-alpine
user: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: p0stgr3s
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
this is dockercompose i have my postgress deployed now my quesiton is what do i do with this entrypoint
entrypoint: ["sh", "-c", "npm run cli db seed -- --swe && npm start"]
0 Replies
5 months ago
set it as a start command -
/bin/sh -c "npm run cli db seed -- --swe && npm start"
5 months ago
!s
Status changed to Solved brody • 5 months ago