-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (72 loc) · 1.63 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
version: '3.9'
services:
postgres:
container_name: postgres-app
hostname: postgres-app
image: postgres:alpine
ports:
- "127.0.0.1:${POSTGRES_PORT}:5432"
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASS}
- POSTGRES_NAME=${POSTGRES_NAME}
restart: unless-stopped
networks:
- connection
app:
container_name: app
build:
context: .
dockerfile: Dockerfile
args:
- EXPOSE_PORT=${APP_PORT}
env_file:
- .env
restart: unless-stopped
ports:
- ${APP_PORT}:3000
depends_on:
- postgres
networks:
- connection
prometheus:
image: prom/prometheus:v2.40.4
container_name: prome-larissa
ports:
- 9090:9090
volumes:
- ./infrastructure/prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- connection
depends_on:
- app
loki:
image: grafana/loki:latest
container_name: loki-larissa
hostname: loki
ports:
- 3100:3100
volumes:
- ./infrastructure/loki.yml:/etc/loki/local-config.yml
command: -config.file=/etc/loki/local-config.yml
networks:
- connection
grafana:
image: grafana/grafana:9.3.0
ports:
- 3000:3000
environment:
- GF_SECURITY_ADMIN_USER=${GF_ADMIN_USER}
- GF_SECURITY_ADMIN_PASSWORD=${GF_ADMIN_PASS}
volumes:
- ./infrastructure/grafana.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
- grafana:/var/lib/grafana
networks:
- connection
depends_on:
- prometheus
volumes:
grafana:
networks:
connection:
driver: bridge