-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (46 loc) · 1.05 KB
/
Copy pathdocker-compose.yml
File metadata and controls
50 lines (46 loc) · 1.05 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
version: "3.9"
services:
db:
image: postgres:16-alpine
environment:
POSTGRES_DB: signalhub
POSTGRES_USER: signalhub
POSTGRES_PASSWORD: signalhub_dev
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U signalhub"]
interval: 5s
timeout: 5s
retries: 5
api:
build:
context: .
dockerfile: apps/api/Dockerfile
ports:
- "8000:8000"
environment:
DATABASE_URL: postgresql+asyncpg://signalhub:signalhub_dev@db:5432/signalhub
DATABASE_URL_SYNC: postgresql://signalhub:signalhub_dev@db:5432/signalhub
API_HOST: "0.0.0.0"
API_PORT: "8000"
depends_on:
db:
condition: service_healthy
volumes:
- ./apps/api:/app/apps/api
- ./packages:/app/packages
web:
build:
context: ./apps/web
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
NEXT_PUBLIC_API_URL: http://localhost:8000
depends_on:
- api
volumes:
pgdata: