-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.all.yml
78 lines (71 loc) · 1.76 KB
/
docker-compose.all.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
version: '3.5'
services:
mysql:
image: mysql:8-debian
volumes:
- mysql_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: keycloak
MYSQL_USER: keycloak
MYSQL_PASSWORD: password
# healthcheck:
# test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
# timeout: 20s
# retries: 10
keycloak:
image: ghcr.io/bancodobrasil/jamie-auth-service:0.1.0-rc1
volumes:
- ./keycloak/themes:/opt/keycloak/themes
environment:
KC_DB: mysql
KC_DB_URL_HOST: mysql
KC_DB_URL_DATABASE: keycloak
KC_DB_USERNAME: keycloak
KC_DB_PASSWORD: password
KC_DB_URL_PORT: 3306
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
ports:
- 8080:8080
depends_on:
- mysql
command: start-dev
nginx:
build:
context: .
args:
NGINX_EXPORTER_RESOLVER: 127.0.0.11 valid=30s
NGINX_SERVER_NAME: localhost
ports:
- 80:80
environment:
JAMIE_UI_BASE_URL: http://localhost
JAMIE_KEYCLOAK_BASE_URL: http://localhost:8080
JAMIE_API_BASE_URL: https://api.jamie.g6tech.com.br
NGINX_EXPORTER_URL: http://nginx-exporter:9113/metrics
grafana:
image: grafana/grafana
ports:
- 3000:3000
volumes:
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
- grafana-storage:/var/lib/grafana
prometheus:
image: prom/prometheus
ports:
- 9090:9090
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
nginx-exporter:
restart: always
image: nginx/nginx-prometheus-exporter:0.4.2
command:
- -nginx.scrape-uri
- http://nginx/status
depends_on:
- prometheus
volumes:
mysql_data:
grafana-storage:
geoip2: