-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
101 lines (91 loc) · 1.75 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: "3"
services:
database:
tty: true
build:
context: ./database
dockerfile: Dockerfile
ports:
- 2000:5432
env_file:
- ./database/.env
networks:
- network
redis:
tty: true
build:
context: ./redis
dockerfile: Dockerfile
# Redis port should only be exposed in development environment
ports:
- 6000:6379
env_file:
- ./redis/.env
networks:
- network
backend:
tty: true
build:
context: ./backend
dockerfile: Dockerfile
ports:
- 4000:80
depends_on:
- jaeger
- redis
- database
env_file:
- ./backend/production.env
networks:
- network
frontend:
tty: true
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- 3000:3000
env_file:
- ./frontend/production.env
networks:
- network
grafana:
image: grafana/grafana:main
ports:
- 8080:3000
restart: unless-stopped
user: "1000"
volumes:
- ./grafana:/var/lib/grafana
networks:
- network
jaeger:
image: jaegertracing/all-in-one:latest
ports:
- "6831:6831/udp"
- "16686:16686"
- "5775:5775/udp"
- "6832:6832/udp"
- "5778:5778"
- "14250:14250"
- "14268:14268"
- "14269:14269"
- "9411:9411"
networks:
- network
prometheus:
image: prom/prometheus:latest
volumes:
- prometheus-volume:/prometheus
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- '9090:9090'
networks:
- network
volumes:
grafana-volume:
prometheus-volume:
networks:
network: