-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (54 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
54 lines (54 loc) · 1.12 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
version: '3.9'
services:
db:
image: postgres:16
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: genz
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
redis:
image: redis:7
ports:
- "6379:6379"
api:
build:
context: .
dockerfile: apps/api/Dockerfile
environment:
- DATABASE_URL=postgresql+psycopg://postgres:postgres@db:5432/genz
- REDIS_URL=redis://redis:6379/0
- CORS_ORIGINS=*
- JWT_SECRET_KEY=dev
- ACCESS_TOKEN_EXPIRE_MINUTES=60
depends_on:
- db
- redis
ports:
- "8000:8000"
web:
build:
context: .
dockerfile: apps/web/Dockerfile
environment:
- NEXT_PUBLIC_API_BASE_URL=http://localhost:8000
depends_on:
- api
ports:
- "3000:3000"
prometheus:
image: prom/prometheus:latest
volumes:
- ./infra/prometheus.yml:/etc/prometheus/prometheus.yml:ro
ports:
- "9090:9090"
grafana:
image: grafana/grafana:latest
ports:
- "3001:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
volumes:
pgdata: