-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
54 lines (51 loc) · 1.15 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
services:
web:
container_name: web
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/lemonapi:ro
tty: true
depends_on:
- postgres
links:
- postgres
ports:
- "5001:5001"
postgres:
image: postgres:15-alpine
restart: unless-stopped
container_name: postgres
volumes:
- ./postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USER}
prometheus:
image: prom/prometheus:latest
restart: unless-stopped
container_name: prometheuss
ports:
- 9090:9090
depends_on:
- web
volumes:
- ./metrics/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- "--config.file=/etc/prometheus/prometheus.yml"
grafana:
image: grafana/grafana:latest
restart: unless-stopped
user: "472"
container_name: grafanas
depends_on:
- web
- prometheus
ports:
- 3000:3000
volumes:
- ./metrics/datasource.yml:/etc/grafana/provisioning/datasource.yml
env_file:
- ./metrics/config.monitoring