-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (67 loc) · 1.88 KB
/
Copy pathdocker-compose.yml
File metadata and controls
72 lines (67 loc) · 1.88 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
services:
api:
build: ./api
ports:
- "127.0.0.1:8000:8000"
environment:
- DATABASE_URL=postgresql+asyncpg://hookforms:${POSTGRES_PASSWORD}@postgres:5432/hookforms
- REDIS_URL=redis://:${REDIS_PASSWORD}@redis:6379
- ADMIN_API_KEY=${ADMIN_API_KEY}
- CORS_ORIGINS=${CORS_ORIGINS:-}
- GMAIL_SENDER_EMAIL=${GMAIL_SENDER_EMAIL:-}
- EVENT_RETENTION_DAYS=${EVENT_RETENTION_DAYS:-30}
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
volumes:
- ./config/gmail:/app/config/gmail
restart: unless-stopped
worker:
build: ./api
command: arq app.worker.WorkerSettings
environment:
- DATABASE_URL=postgresql+asyncpg://hookforms:${POSTGRES_PASSWORD}@postgres:5432/hookforms
- REDIS_URL=redis://:${REDIS_PASSWORD}@redis:6379
- ADMIN_API_KEY=${ADMIN_API_KEY}
- GMAIL_SENDER_EMAIL=${GMAIL_SENDER_EMAIL:-}
- EVENT_RETENTION_DAYS=${EVENT_RETENTION_DAYS:-30}
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
volumes:
- ./config/gmail:/app/config/gmail
restart: unless-stopped
postgres:
image: postgres:16-alpine
volumes:
- pgdata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=hookforms
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=hookforms
healthcheck:
test: ["CMD-SHELL", "pg_isready -U hookforms"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
command: redis-server --requirepass ${REDIS_PASSWORD}
volumes:
- redisdata:/data
cloudflared:
image: cloudflare/cloudflared:latest
command: tunnel run
volumes:
- ./config/cloudflared:/etc/cloudflared
depends_on:
- api
profiles:
- tunnel
volumes:
pgdata:
redisdata: