mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2026-03-27 22:46:37 +00:00
Add local docker test environment (#1)
* local docker test environment with keycloak and xrdp Co-authored-by: Krzysztof Adamski <krzysztof.adamski@ing.com>
This commit is contained in:
committed by
GitHub
parent
7bace85c15
commit
94acec7529
48
dev/docker/docker-compose.yml
Normal file
48
dev/docker/docker-compose.yml
Normal file
@@ -0,0 +1,48 @@
|
||||
version: '3.4'
|
||||
|
||||
volumes:
|
||||
mysql_data:
|
||||
driver: local
|
||||
realm-export.json:
|
||||
|
||||
services:
|
||||
keycloak:
|
||||
image: quay.io/keycloak/keycloak:11.0.0
|
||||
hostname: keycloak
|
||||
volumes:
|
||||
- ${PWD}/realm-export.json:/export/realm-export.json
|
||||
environment:
|
||||
KEYCLOAK_USER: admin
|
||||
KEYCLOAK_PASSWORD: admin
|
||||
KEYCLOAK_IMPORT: /export/realm-export.json
|
||||
ports:
|
||||
- 8080:8080
|
||||
restart: on-failure
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/auth"]
|
||||
interval: 30s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
start_period: 5s
|
||||
xrdp:
|
||||
hostname: xrdp
|
||||
image: rattydave/docker-ubuntu-xrdp-mate-custom:20.04
|
||||
ports:
|
||||
- 3389:3389
|
||||
restart: on-failure
|
||||
volumes:
|
||||
- ${PWD}/xrdp_users.txt:/root/createusers.txt
|
||||
environment:
|
||||
TZ: "Europe/London"
|
||||
rdpgw:
|
||||
build: .
|
||||
ports:
|
||||
- 9443:9443
|
||||
restart: on-failure
|
||||
depends_on:
|
||||
- keycloak
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://keycloak:8080"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
Reference in New Issue
Block a user