-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (55 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
58 lines (55 loc) · 1.21 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
services:
db:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: github_dash
POSTGRES_PASSWORD: local_dev_password
POSTGRES_DB: github_dash
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U github_dash"]
interval: 5s
timeout: 5s
retries: 5
dev:
build:
context: .
dockerfile: Dockerfile.dev
restart: unless-stopped
ports:
- "4731:4731"
volumes:
- .:/app
- /app/node_modules
- /app/.next
- /app/generated
env_file: .env
environment:
DATABASE_URL: postgresql://github_dash:local_dev_password@db:5432/github_dash
depends_on:
db:
condition: service_healthy
app:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
profiles:
- prod
ports:
- "4731:4731"
env_file: .env
environment:
PORT: "4731"
HOSTNAME: "0.0.0.0"
DATABASE_URL: postgresql://github_dash:local_dev_password@db:5432/github_dash
AUTH_TRUST_HOST: "true"
depends_on:
db:
condition: service_healthy
volumes:
pgdata: