forked from Srbino/splitcrew
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (34 loc) · 935 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (34 loc) · 935 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
services:
app:
build: .
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgresql://crewsplit:crewsplit@db:5432/crewsplit
- SESSION_SECRET=docker-dev-secret-change-in-production-please-1234567890abcdef
depends_on:
db:
condition: service_healthy
volumes:
- ./src:/app/src
- ./public:/app/public
command: npm run dev
db:
image: postgres:16-alpine
environment:
POSTGRES_DB: crewsplit
POSTGRES_USER: crewsplit
POSTGRES_PASSWORD: crewsplit
ports:
- "5432:5432"
volumes:
- ./scripts/schema.sql:/docker-entrypoint-initdb.d/01_schema.sql
- ./scripts/seed.sql:/docker-entrypoint-initdb.d/02_seed.sql
- crewsplit_pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U crewsplit -d crewsplit"]
interval: 5s
timeout: 5s
retries: 5
volumes:
crewsplit_pgdata: