-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yaml
73 lines (73 loc) · 2.21 KB
/
docker-compose.yaml
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
version: "3"
volumes:
pg_data:
prometheus_data:
services:
keycloak:
profiles: [idp]
image: quay.io/keycloak/keycloak:25.0.2
depends_on: [postgres]
command: ["start-dev", "--import-realm"]
environment:
KC_DB: postgres
KC_DB_USERNAME: keycloak
KC_DB_PASSWORD: password
KC_DB_URL: "jdbc:postgresql://postgres:5432/keycloak"
KC_REALM_NAME: trento
KEYCLOAK_ADMIN: keycloak
KEYCLOAK_ADMIN_PASSWORD: admin
ports:
- 8081:8080
volumes:
- ./container_fixtures/keycloak/realm.json:/opt/keycloak/data/import/realm.json:ro
node_exporter:
image: prom/node-exporter:v1.7.0
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- "--path.procfs=/host/proc"
- "--path.rootfs=/rootfs"
- "--path.sysfs=/host/sys"
- "--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)"
prometheus:
image: prom/prometheus:v2.48.1
user: "0:0"
volumes:
- ./prometheus-dev-config.yml:/etc/prometheus/prometheus.yml
- ./container_fixtures/prometheus:/container_init
- prometheus_data:/prometheus
entrypoint: "/container_init/prometheus_entrypoint.sh"
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--storage.tsdb.retention.time=5y"
- "--storage.tsdb.retention.size=1GB"
- "--web.console.libraries=/etc/prometheus/console_libraries"
- "--web.console.templates=/etc/prometheus/consoles"
- "--web.enable-lifecycle"
- "--web.enable-admin-api"
ports:
- 9090:9090
extra_hosts:
- host.docker.internal:host-gateway
postgres:
image: postgres:15
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- 5433:5432
volumes:
- pg_data:/var/lib/postgresql/data
- ./container_fixtures/keycloak/init_keycloak_db.sh:/docker-entrypoint-initdb.d/init_keycloak_db.sh
rabbitmq:
image: rabbitmq:3.12.6-management-alpine
ports:
- 5673:5672
- 15673:15672
environment:
RABBITMQ_DEFAULT_USER: trento
RABBITMQ_DEFAULT_PASS: trento