-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
71 lines (67 loc) · 1.84 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
services:
database:
container_name: iam-database
image: mysql:latest
environment:
TZ: Europe/Rome
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_ROOT_PASSWORD: pwd
MYSQL_USER: iam
MYSQL_PASSWORD: pwd
MYSQL_DATABASE: iam
MYSQL_ROOT_HOST: "%"
ports:
- "3306:3306"
restart: on-failure
volumes:
- iam-db:/var/lib/mysql
dashboard:
container_name: iam-dashboard
image: mcr.microsoft.com/devcontainers/typescript-node:1-20-bookworm
depends_on:
- backend
volumes:
- .:/workspace:cached
command: sleep infinity
environment:
- NEXT_TELEMETRY_DISABLED=1
backend:
container_name: iam-backend
image: indigoiam/iam-login-service:latest
restart: unless-stopped
depends_on:
- database
environment:
IAM_JAVA_OPTS: -Dspring.profiles.active=mysql-test,oidc,registration
TZ: Europe/Rome
IAM_PORT: 8081
IAM_HOST: localhost
IAM_BASE_URL: http://localhost:8081
IAM_ISSUER: http://localhost:8081
IAM_KEY_STORE_LOCATION: file:/keys/json-keystore.jwks
IAM_DB_PORT: 3306
IAM_DB_USERNAME: iam
IAM_DB_PASSWORD: pwd
IAM_DB_HOST: database
IAM_DATABASE_SHOW_SQL: false
IAM_REGISTRATION_AUTHENTICATION_TYPE: oidc
IAM_REGISTRATION_OIDC_ISSUER: ${REGISTRATION_OIDC_ISSUER:-https://example.org}
IAM_ORGANISATION_NAME: cnafsd
volumes:
- ./json-keystore.jwks:/keys/json-keystore.jwks:ro
nginx:
image: nginx:1.24.0
container_name: iam-nginx
restart: unless-stopped
depends_on:
- backend
- dashboard
command: ["nginx-debug", "-g", "daemon off;"]
ports:
- "8080:8080"
- "8081:8081"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
volumes:
iam-db: