Add container names docker-compose files (#38)

This commit is contained in:
alphabet5 2022-03-21 04:52:07 -05:00 committed by GitHub
parent d653997d4d
commit db9dfe3424
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 37 deletions

View file

@ -7,42 +7,45 @@ volumes:
services: services:
keycloak: keycloak:
image: richardjkendall/keycloak-arm:latest container_name: keycloak
hostname: keycloak image: richardjkendall/keycloak-arm:latest
volumes: hostname: keycloak
- ${PWD}/realm-export.json:/export/realm-export.json volumes:
environment: - ${PWD}/realm-export.json:/export/realm-export.json
KEYCLOAK_USER: admin environment:
KEYCLOAK_PASSWORD: admin KEYCLOAK_USER: admin
KEYCLOAK_IMPORT: /export/realm-export.json KEYCLOAK_PASSWORD: admin
ports: KEYCLOAK_IMPORT: /export/realm-export.json
- 8080:8080 ports:
restart: on-failure - 8080:8080
healthcheck: restart: on-failure
test: ["CMD", "curl", "-f", "http://localhost:8080/auth"] healthcheck:
interval: 30s test: ["CMD", "curl", "-f", "http://localhost:8080/auth"]
timeout: 3s interval: 30s
retries: 10 timeout: 3s
start_period: 5s retries: 10
start_period: 5s
xrdp: xrdp:
hostname: xrdp container_name: xrdp
image: rattydave/docker-ubuntu-xrdp-mate-custom:20.04 hostname: xrdp
ports: image: rattydave/docker-ubuntu-xrdp-mate-custom:20.04
- 3389:3389 ports:
restart: on-failure - 3389:3389
volumes: restart: on-failure
- ${PWD}/xrdp_users.txt:/root/createusers.txt volumes:
environment: - ${PWD}/xrdp_users.txt:/root/createusers.txt
TZ: "Europe/Amsterdam" environment:
TZ: "Europe/Amsterdam"
rdpgw: rdpgw:
build: . container_name: rdpgw
ports: build: .
- 9443:9443 ports:
restart: on-failure - 9443:9443
depends_on: restart: on-failure
- keycloak depends_on:
healthcheck: - keycloak
test: ["CMD", "curl", "-f", "http://keycloak:8080"] healthcheck:
interval: 30s test: ["CMD", "curl", "-f", "http://keycloak:8080"]
timeout: 10s interval: 30s
retries: 10 timeout: 10s
retries: 10

View file

@ -7,6 +7,7 @@ volumes:
services: services:
keycloak: keycloak:
container_name: keycloak
image: quay.io/keycloak/keycloak:latest image: quay.io/keycloak/keycloak:latest
hostname: keycloak hostname: keycloak
volumes: volumes:
@ -15,9 +16,13 @@ services:
KEYCLOAK_USER: admin KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin KEYCLOAK_PASSWORD: admin
KEYCLOAK_IMPORT: /export/realm-export.json KEYCLOAK_IMPORT: /export/realm-export.json
KEYCLOAK_ADMIN: admin
KEYCLOAD_ADMIN_PASSWORD: admin
ports: ports:
- 8080:8080 - 8080:8080
restart: on-failure restart: on-failure
command:
- start-dev
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/auth"] test: ["CMD", "curl", "-f", "http://localhost:8080/auth"]
interval: 30s interval: 30s
@ -25,6 +30,7 @@ services:
retries: 10 retries: 10
start_period: 5s start_period: 5s
xrdp: xrdp:
container_name: xrdp
hostname: xrdp hostname: xrdp
image: rattydave/docker-ubuntu-xrdp-mate-custom:20.04 image: rattydave/docker-ubuntu-xrdp-mate-custom:20.04
ports: ports: