-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (49 loc) · 1.26 KB
/
docker-compose.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
version: "3.1"
services:
db:
image: mcr.microsoft.com/mssql/server:2019-latest
restart: always
environment:
- MSSQL_SA_PASSWORD=Yourpassword123!
- ACCEPT_EULA=Y
- MSSQL_PID=Developer
ports:
- 1433:1433
container_name: db
volumes:
- sqlvolume:/var/opt/mssql
networks:
- keycloak-network
keycloak:
image: keycloak/keycloak:latest
depends_on:
- db
environment:
- KEYCLOAK_DATABASE_VENDOR=mssql
- KEYCLOAK_ADMIN=vatraxos
- KEYCLOAK_ADMIN_PASSWORD=s1lienc3
# - KEYCLOAK_ENABLE_STATISTICS=true
# - KEYCLOAK_ENABLE_HTTPS=false
# - KEYCLOAK_PRODUCTION=false
- KEYCLOAK_DATABASE_URL=127.0.0.1:1433
- KEYCLOAK_DATABASE_USER=sa
- KEYCLOAK_DATABASE_PASSWORD=Yourpassword123!
# - KEYCLOAK_DATABASE_NAME=Keycloak
command: start-dev
ports:
- 18443:8443
- 18080:8080
- 19990:9990
container_name: keycloak
volumes:
- keycloak_data:/data
- ./keycloak/providers:/opt/jboss/keycloak/providers
- ./keycloak/standalone/configuration:/opt/jboss/keycloak/standalone/configuration
networks:
- keycloak-network
volumes:
sqlvolume:
keycloak_data:
networks:
keycloak-network:
driver: bridge