version: '3.4' networks: # To create this run: # > docker network create nsp_net nsp_net: external: true sts_net: services: sts-db: # https://hub.docker.com/_/mariadb image: mariadb:10.1 # https://www.nspop.dk/display/Web3/Platformsapplikationer ports: - "3306:3306" networks: - sts_net environment: - MYSQL_ROOT_PASSWORD=password # environment: #- "MYSQL_RANDOM_ROOT_PASSWORD=yes" # - "MYSQL_DATABASE=nas" volumes: - ../database/:/docker-entrypoint-initdb.d/:ro cradb: # Needed by the base application server image image: registry.nspop.dk/platform/cradb:latest networks: - sts_net environment: - MYSQL_RANDOM_ROOT_PASSWORD=yes volumes: - ../cra_test_data/99-crl-testdata.sql:/docker-entrypoint-initdb.d/x.init.sql # Service containers below sts: build: context: ../../modules/sts-server/ image: sts ports: - "9090:8080" #http port - "5006:5006" #debugging port depends_on: - cradb - sts-db - ridcpr-stub - pidcpr-stub - fuldmagt-service networks: - sts_net environment: - LOG_MAX_FILE_SIZE=10MB - LOG_MAX_BACKUP_INDEX=5 - JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5006" volumes: - ../configuration/config.xml:/pack/wildfly8/standalone/configuration/sts/config.xml - ../configuration/cvr-rid.xml:/pack/wildfly8/standalone/configuration/sts/cvr-rid.xml - ../configuration/uuid2cpr.xml:/pack/wildfly8/standalone/configuration/sts/uuid2cpr.xml - ../configuration/services.xml:/pack/wildfly8/standalone/configuration/sts/services.xml - ../configuration/timers.xml:/pack/wildfly8/standalone/configuration/sts/timers.xml - ../configuration/interface.xml:/pack/wildfly8/standalone/configuration/sts/interface.xml - ../configuration/seal.xml:/pack/wildfly8/standalone/configuration/sts/seal.xml - ./configuration/federation.xml:/pack/wildfly8/standalone/configuration/sts/federation.xml - ../configuration/nsp-test-rid.jks:/pack/sts/nsp-test-rid.jks - ../configuration/test-jwt-idp-trust.jks:/pack/sts/test-jwt-idp-trust.jks - ../configuration/test-new-nemLogin-idp.keystore:/pack/sts/test-new-nemLogin-idp.keystore - ../configuration/teststs-1.keystore:/pack/sts/teststs-1.keystore - ../configuration/testtdc.keystore:/pack/sts/testtdc.keystore - ../configuration/log4j-nspslalog-sts.properties:/pack/wildfly8/standalone/configuration/log4j-nspslalog-sts.properties - ../configuration/log4j-sts.xml:/pack/wildfly8/standalone/configuration/log4j-sts.xml - ../configuration/nspslalog-sosists.properties:/pack/wildfly8/standalone/configuration/nspslalog-sosists.properties - ../configuration/sts-ds.xml:/pack/wildfly8/standalone/deployments/sts-ds.xml - ../configuration/crasts-ds.xml:/pack/wildfly8/standalone/deployments/crasts-ds.xml - ../configuration/crl.skip:/pack/wildfly8/modules/system/layers/base/dk/sds/nsp/accesshandler/main/crl.skip - ./log/sts:/pack/wildfly8/standalone/log command: /pack/wildfly8/bin/standalone.sh -b 0.0.0.0 -Djavax.net.ssl.keyStore=/pack/sts/nsp-test-rid.jks -Djavax.net.ssl.keyStorePassword=Test1234 ridcpr-stub: build: context: ../../modules/ridcpr-stub/ image: ridcpr-stub networks: - sts_net environment: - RID_MAPPING=/rid_mapping.txt volumes: - ../configuration/rid_mapping.txt:/rid_mapping.txt pidcpr-stub: build: context: ../../modules/pidcpr-stub/ image: pidcpr-stub networks: - sts_net ports: - 8082:8082 environment: - PID_MAPPING=/pid_mapping.txt volumes: - ../configuration/pid_mapping.txt:/pid_mapping.txt fuldmagt-service: build: context: ../../modules/fuldmagt-stub/ image: fuldmagt-stub networks: - sts_net sts-uuid2cpr-proxy: image: registry.nspop.dk/components/sts-uuid2cpr-proxy:latest ports: - 8787:8080 - 5005:5005 networks: - sts_net environment: - LOG_MAX_FILE_SIZE=10MB - LOG_MAX_BACKUP_INDEX=5 - JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005" volumes: - ./configuration/uuid2cpr/uuid2cpr-proxy.properties:/pack/wildfly/modules/dk/nsp/uuid2cpr/proxy/main/uuid2cpr-proxy.properties - ./configuration/uuid2cpr/log4j.properties:/pack/wildfly/modules/dk/nsp/uuid2cpr/proxy/main/log4j.properties - ./configuration/uuid2cpr/client.properties:/pack/uuid2cpr/client.properties - ./configuration/uuid2cpr/lookup.pfx:/pack/uuid2cpr/lookup.pfx - ./configuration/uuid2cpr/sts.properties:/pack/uuid2cpr/sts.properties - ./configuration/uuid2cpr/trust.jks:/pack/uuid2cpr/trust.jks - ./log/uuid2cpr:/pack/wildfly/standalone/log mock-sts-uuid2cpr-proxy: image: mockserver/mockserver command: -logLevel DEBUG -serverPort 8080 environment: - MOCKSERVER_INITIALIZATION_JSON_PATH=/config/initializerJson.json ports: - 8989:8080 volumes: - ./configuration/uuid2cpr-mock/initializerJson.json:/config/initializerJson.json networks: - sts_net