-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 867 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (31 loc) · 867 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
services:
starflow:
image: gemiluxvii/starflow:latest
container_name: starflow
restart: unless-stopped
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgresql://starflow:starflow@db:5432/starflow
- GITHUB_CLIENT_ID=${GITHUB_CLIENT_ID}
- GITHUB_CLIENT_SECRET=${GITHUB_CLIENT_SECRET}
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
- NEXTAUTH_URL=${NEXTAUTH_URL}
depends_on:
db:
condition: service_healthy
db:
image: postgres:16-alpine
container_name: starflow-db
restart: unless-stopped
environment:
- POSTGRES_USER=starflow
- POSTGRES_PASSWORD=starflow
- POSTGRES_DB=starflow
volumes:
- ./data/postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U starflow"]
interval: 5s
timeout: 5s
retries: 5