68 lines
1.9 KiB
YAML
68 lines
1.9 KiB
YAML
|
|
services:
|
||
|
|
hoppscotch-db:
|
||
|
|
image: postgres:15
|
||
|
|
user: postgres
|
||
|
|
environment:
|
||
|
|
POSTGRES_USER: postgres
|
||
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-testpass}
|
||
|
|
POSTGRES_DB: ${POSTGRES_DB:-hoppscotch}
|
||
|
|
volumes:
|
||
|
|
- hoppscotch-db:/var/lib/postgresql/data
|
||
|
|
healthcheck:
|
||
|
|
test:
|
||
|
|
[
|
||
|
|
"CMD-SHELL",
|
||
|
|
"sh -c 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'",
|
||
|
|
]
|
||
|
|
interval: 5s
|
||
|
|
timeout: 5s
|
||
|
|
retries: 10
|
||
|
|
|
||
|
|
hoppscotch-backend:
|
||
|
|
container_name: hoppscotch-backend
|
||
|
|
restart: unless-stopped
|
||
|
|
image: ${API_CLIENT_REGISTRY:-forge.lclr.dev}/${API_CLIENT_NAMESPACE:-thibaud-lclr}/${API_CLIENT_IMAGE_PREFIX:-api-client}-backend:${API_CLIENT_TAG:-latest}
|
||
|
|
env_file:
|
||
|
|
- ./.env
|
||
|
|
environment:
|
||
|
|
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD:-testpass}@hoppscotch-db:5432/${POSTGRES_DB:-hoppscotch}
|
||
|
|
depends_on:
|
||
|
|
hoppscotch-db:
|
||
|
|
condition: service_healthy
|
||
|
|
command:
|
||
|
|
[
|
||
|
|
"sh",
|
||
|
|
"-c",
|
||
|
|
"pnpm exec prisma migrate deploy && node prod_run.mjs",
|
||
|
|
]
|
||
|
|
ports:
|
||
|
|
- "3170:3170"
|
||
|
|
|
||
|
|
hoppscotch-app:
|
||
|
|
container_name: hoppscotch-app
|
||
|
|
restart: unless-stopped
|
||
|
|
image: ${API_CLIENT_REGISTRY:-forge.lclr.dev}/${API_CLIENT_NAMESPACE:-thibaud-lclr}/${API_CLIENT_IMAGE_PREFIX:-api-client}-app:${API_CLIENT_TAG:-latest}
|
||
|
|
env_file:
|
||
|
|
- ./.env
|
||
|
|
depends_on:
|
||
|
|
hoppscotch-backend:
|
||
|
|
condition: service_started
|
||
|
|
ports:
|
||
|
|
- "3000:3000"
|
||
|
|
- "3200:3200"
|
||
|
|
|
||
|
|
hoppscotch-sh-admin:
|
||
|
|
container_name: hoppscotch-sh-admin
|
||
|
|
restart: unless-stopped
|
||
|
|
image: ${API_CLIENT_REGISTRY:-forge.lclr.dev}/${API_CLIENT_NAMESPACE:-thibaud-lclr}/${API_CLIENT_IMAGE_PREFIX:-api-client}-sh-admin:${API_CLIENT_TAG:-latest}
|
||
|
|
env_file:
|
||
|
|
- ./.env
|
||
|
|
depends_on:
|
||
|
|
hoppscotch-backend:
|
||
|
|
condition: service_started
|
||
|
|
ports:
|
||
|
|
- "3100:3100"
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
hoppscotch-db:
|