-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 931 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (35 loc) · 931 Bytes
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
version: "3.9"
services:
app:
build: .
ports:
- "${PORT:-8000}:8000"
environment:
- DATABASE_URL=postgresql://onealert:onealert@db:5432/onealert
- SECRET_KEY=${SECRET_KEY:-change-me-in-production}
- GITHUB_CLIENT_ID=${GITHUB_CLIENT_ID:-}
- GITHUB_CLIENT_SECRET=${GITHUB_CLIENT_SECRET:-}
- STRIPE_SECRET_KEY=${STRIPE_SECRET_KEY:-}
- MAILGUN_API_KEY=${MAILGUN_API_KEY:-}
- MAILGUN_DOMAIN=${MAILGUN_DOMAIN:-}
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: onealert
POSTGRES_PASSWORD: onealert
POSTGRES_DB: onealert
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U onealert"]
interval: 5s
timeout: 3s
retries: 5
volumes:
pgdata: