-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (56 loc) · 1.56 KB
/
docker-compose.yml
File metadata and controls
59 lines (56 loc) · 1.56 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
services:
db:
image: postgres:16-alpine
environment:
POSTGRES_DB: turbo_cache
POSTGRES_USER: turbo
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-turbo_dev_password}
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U turbo"]
interval: 5s
timeout: 5s
retries: 5
mailpit:
image: axllent/mailpit
ports:
- "8025:8025"
- "1025:1025"
environment:
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
app:
build: .
depends_on:
db:
condition: service_healthy
environment:
DATABASE_URL: postgres://turbo:${POSTGRES_PASSWORD:-turbo_dev_password}@db:5432/turbo_cache
JWT_SECRET: ${JWT_SECRET:-dev-secret-change-in-production}
TURBO_TOKENS: ${TURBO_TOKENS:-legacy-dev-token}
STORAGE_PROVIDER: ${STORAGE_PROVIDER:-file}
FS_PATH: /data/cache
LEGACY_TOKENS_ENABLED: "${LEGACY_TOKENS_ENABLED:-true}"
SMTP_HOST: mailpit
SMTP_PORT: "1025"
SMTP_TLS: none
SMTP_FROM: ${SMTP_FROM:-noreply@turbo-cache.local}
APP_URL: ${APP_URL:-http://localhost:4000}
SUPER_ADMIN_EMAIL: ${SUPER_ADMIN_EMAIL:-admin@example.com}
SUPER_ADMIN_PASSWORD: ${SUPER_ADMIN_PASSWORD:-changeme123}
ports:
- "4000:4000"
volumes:
- cachedata:/data/cache
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000/health"]
interval: 30s
timeout: 3s
start_period: 5s
retries: 3
volumes:
pgdata:
cachedata: