-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
67 lines (61 loc) · 1.33 KB
/
Copy pathdocker-compose.dev.yaml
File metadata and controls
67 lines (61 loc) · 1.33 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
59
60
61
62
63
64
65
66
67
services:
backend:
build:
context: ./backend
container_name: kitypes_backend
restart: always
ports:
- "8080:8080"
env_file:
- ./backend/.env
depends_on:
- postgres
- redis
frontend:
build:
context: ./frontend
container_name: kitypes_frontend
restart: always
ports:
- "80:3000"
env_file:
- ./frontend/.env
postgres:
image: postgres:18-alpine
container_name: kitypes_postgres
restart: always
expose:
- "5432"
environment:
POSTGRES_DB: ${POSTGRES_DB:-kitypes}
POSTGRES_USER: ${POSTGRES_USER:-kitypes}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-kitypes}
volumes:
- pg_data:/var/lib/postgresql
redis:
image: redis:7.4.1-alpine3.20
container_name: kitypes_redis
restart: always
expose:
- "6379"
prometheus:
image: prom/prometheus:latest
container_name: kitypes_prometheus
restart: always
expose:
- "9090"
volumes:
- ./backend/prometheus.yaml:/etc/prometheus/prometheus.yml:ro
grafana:
image: grafana/grafana:latest
container_name: kitypes_grafana
restart: always
ports:
- "3001:3000"
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
depends_on:
- prometheus
volumes:
pg_data: