-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
41 lines (39 loc) · 987 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
41 lines (39 loc) · 987 Bytes
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
version: "3.9"
networks:
monitoring:
services:
grafana:
image: grafana/grafana:latest
container_name: grafana
restart: unless-stopped
volumes:
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- ./grafana/dashboards:/var/lib/grafana/dashboards
ports:
- "3000:3000"
networks:
- monitoring
postgres:
image: postgres:15.3
container_name: postgres
restart: unless-stopped
environment:
POSTGRES_DB: "postgres"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
PGDATA: "/var/lib/postgresql/data/pgdata"
command: postgres -c 'max_connections=3000'
ports:
- "5432:5432"
networks:
- monitoring
volumes:
- ./postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
- ./postgres/pgdata:/var/lib/postgresql/data/pgdata:rw
adminer:
image: adminer
restart: always
ports:
- 8080:8080
networks:
- monitoring