-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathcompose.yaml
More file actions
75 lines (71 loc) · 2.01 KB
/
Copy pathcompose.yaml
File metadata and controls
75 lines (71 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
services:
app:
build:
context: .
environment:
# Coolify resolves default-bearing values from production before attaching
# the preview env file, so preview-overridable values stay late-bound.
AGENT: ${AGENT}
BACKGROUND_JOBS: ${BACKGROUND_JOBS}
APP_ORIGIN: ${APP_ORIGIN}
DATABASE_URL: postgresql://chopin:chopin@${SERVICE_NAME_DB:-db}:5432/chopin?sslmode=disable
GITHUB_APP_SLUG: ${GITHUB_APP_SLUG}
GITHUB_APP_CLIENT_ID: ${GITHUB_APP_CLIENT_ID}
GITHUB_APP_CLIENT_SECRET: ${GITHUB_APP_CLIENT_SECRET}
GITHUB_ALLOWED_USERS: ${GITHUB_ALLOWED_USERS}
GITHUB_ALLOWED_ORGANIZATIONS: ${GITHUB_ALLOWED_ORGANIZATIONS}
MODEL: ${MODEL}
SERVICE_URL_APP_8787:
SESSION_ENCRYPTION_KEY: ${SESSION_ENCRYPTION_KEY}
STORAGE_DRIVER: postgres
WEB_RESEARCH: ${WEB_RESEARCH}
depends_on:
db:
condition: service_healthy
expose:
- "8787"
restart: unless-stopped
stop_grace_period: 15s
db:
image: postgres:17-alpine
environment:
POSTGRES_DB: chopin
POSTGRES_USER: chopin
POSTGRES_PASSWORD: chopin
healthcheck:
test: ["CMD-SHELL", "pg_isready -U chopin -d chopin"]
interval: 2s
timeout: 3s
retries: 15
volumes:
- postgres-data:/var/lib/postgresql/data
db-e2e:
profiles: ["test"]
image: postgres:17-alpine
environment:
POSTGRES_DB: chopin
POSTGRES_USER: chopin
POSTGRES_PASSWORD: chopin
healthcheck:
test: ["CMD-SHELL", "pg_isready -U chopin -d chopin"]
interval: 2s
timeout: 3s
retries: 15
tmpfs:
- /var/lib/postgresql/data
db-e2e-fixtures:
profiles: ["test"]
image: postgres:17-alpine
environment:
POSTGRES_DB: chopin
POSTGRES_USER: chopin
POSTGRES_PASSWORD: chopin
healthcheck:
test: ["CMD-SHELL", "pg_isready -U chopin -d chopin"]
interval: 2s
timeout: 3s
retries: 15
tmpfs:
- /var/lib/postgresql/data
volumes:
postgres-data: