-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 966 Bytes
/
docker-compose.yml
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
services:
app:
build:
context: .
target: development
ports:
- "3000:3000"
volumes:
- .:/app
- next_cache:/app/.next
- turbo_cache:/app/.turbo
- build_cache:/app/.cache
environment:
- DATABASE_URL=postgresql://fluid:fluid@db:5432/fluid_calendar
- NEXTAUTH_URL=http://localhost:3000
- NEXTAUTH_SECRET=dev-secret-key
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:16-alpine
environment:
- POSTGRES_USER=fluid
- POSTGRES_PASSWORD=fluid
- POSTGRES_DB=fluid_calendar
ports:
- "5432:5432"
volumes:
- postgres_dev_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U fluid -d fluid_calendar"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
postgres_dev_data:
next_cache:
turbo_cache:
build_cache: