-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (48 loc) · 2.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
50 lines (48 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
services:
dory:
image: ${DORY_IMAGE:-dorylab/dory:latest}
restart: unless-stopped
init: true
env_file:
- ${DORY_ENV_FILE:-.env}
environment:
DORY_RUNTIME: docker
NEXT_PUBLIC_DORY_RUNTIME: docker
DB_TYPE: postgres
DATABASE_URL: postgresql://${POSTGRES_USER:?POSTGRES_USER is required}:${POSTGRES_PASSWORD:?POSTGRES_PASSWORD is required}@postgres:5432/${POSTGRES_DB:?POSTGRES_DB is required}
BETTER_AUTH_URL: ${BETTER_AUTH_URL:?BETTER_AUTH_URL is required}
TRUSTED_ORIGINS: ${TRUSTED_ORIGINS:?TRUSTED_ORIGINS is required}
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET:?BETTER_AUTH_SECRET is required}
DS_SECRET_KEY: ${DS_SECRET_KEY:?DS_SECRET_KEY is required}
DORY_LOCAL_FILES_STORAGE_DIR: /app/localdata/local-files
POSTGRES_MAX_CONNECTIONS: ${POSTGRES_MAX_CONNECTIONS:-10}
ports:
- '${DORY_HTTP_PORT:-3000}:3000'
volumes:
- dory-localdata:/app/localdata
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ['CMD-SHELL', 'node -e "fetch(''http://127.0.0.1:3000/healthz'').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"']
interval: 30s
timeout: 5s
retries: 5
start_period: 30s
postgres:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:?POSTGRES_DB is required}
POSTGRES_USER: ${POSTGRES_USER:?POSTGRES_USER is required}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?POSTGRES_PASSWORD is required}
volumes:
- dory-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U "$${POSTGRES_USER}" -d "$${POSTGRES_DB}"']
interval: 10s
timeout: 5s
retries: 10
volumes:
dory-localdata:
dory-postgres-data: