-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
88 lines (81 loc) · 2.02 KB
/
docker-compose.yml
File metadata and controls
88 lines (81 loc) · 2.02 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
services:
app:
build: .
ports:
- "8080:8080"
env_file: .env
environment:
- POSTGRES_HOST=postgres
- MINIO_HOST=http://minio
depends_on:
- postgres
- minio
networks:
- app-network
postgres:
env_file: .env
image: postgres:14.2
restart: unless-stopped
environment:
- POSTGRES_DB=$POSTGRES_DB
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
ports:
- "${POSTGRES_PORT}:${POSTGRES_PORT}"
networks:
- app-network
volumes:
- database_storage:/var/lib/postgresql/data
mailcatcher:
image: yappabe/mailcatcher
ports:
- "1025:1025"
- "1080:1080"
minio:
env_file: .env
image: minio/minio:RELEASE.2024-11-07T00-52-20Z
command: server /data --console-address ":${MINIO_CONSOLE_PORT}"
environment:
- MINIO_HOST=${MINIO_HOST}
- MINIO_BUCKET_NAME=${MINIO_BUCKET_NAME}
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
ports:
- "${MINIO_API_PORT}:${MINIO_API_PORT}"
- "${MINIO_CONSOLE_PORT}:${MINIO_CONSOLE_PORT}"
networks:
- app-network
volumes:
- minio_storage:/data
prometheus:
image: prom/prometheus:latest
container_name: prometheus
ports:
- "9090:9090"
volumes:
- ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
extra_hosts:
- "172.17.0.1:host-gateway"
networks:
- app-network
grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
volumes:
- grafana_storage:/var/lib/grafana
- ./monitoring/grafana/datasources:/etc/grafana/provisioning/datasources
- ./monitoring/grafana/dashboards:/etc/grafana/provisioning/dashboards
networks:
- app-network
volumes:
minio_storage: { }
database_storage:
driver: local
grafana_storage: { }
networks:
app-network:
driver: bridge