diff --git a/.gitmodules b/.gitmodules index bf9d27a7368794d3706ae25ad6d182d5e612b6e2..b2d5b12d69a65af0431d04a5cbcac412b3fa6ccd 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "hydra"] path = hydra url = https://github.com/ory/hydra.git +[submodule "user-panel"] + path = user-panel + url = https://open.greenhost.net/openappstack/user-panel.git diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000000000000000000000000000000000000..484d3c49026678129750c2926936c97a8f7d8bed --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,60 @@ +########################################################################### +####### FOR TESTING PURPOSES ONLY ####### +########################################################################### +# Instead of using the docker compose file you should use the helmfiles # +# to deploy the single sign on system on a kubernetes cluster # +########################################################################### +version: '3' +services: + hydra: + image: oryd/hydra:latest + ports: + - "4444:4444" # Public port + - "4445:4445" # Admin port + - "5555:5555" # Port for hydra token user + command: + serve all --dangerous-force-http --dangerous-allow-insecure-redirect-urls "http://localhost:13337/callback" + environment: + - URLS_SELF_ISSUER=http://oas.example.net:4444/ + - URLS_CONSENT=http://oas.example.net:5001/ + - URLS_LOGIN=http://oas.example.net:5000/ + - URLS_LOGOUT=http://oas.example.net:5000/logout + - DSN=memory + - SECRETS_SYSTEM=youReallyNeedToChangeThis + - OIDC_SUBJECT_TYPES_SUPPORTED=public,pairwise + - OIDC_SUBJECT_TYPE_PAIRWISE_SALT=youReallyNeedToChangeThis + - SERVE_PUBLIC_CORS_DEBUG=true + - LOG_LEVEL="debug" + restart: unless-stopped + consent: + build: consent_provider/ + environment: + - HYDRA_ADMIN_URL=http://hydra:4445 + - GRAPHQL_URL=http://backend:5000/graphql + ports: + - "5001:5001" + restart: unless-stopped + login: + build: login_provider/ + environment: + - HYDRA_ADMIN_URL=http://hydra:4445 + - GRAPHQL_URL=http://backend:5000/graphql + ports: + - "5000:5000" + restart: unless-stopped + backend: + build: user-panel/ + environment: + - DEBUG=True + - HYDRA_ADMIN_URL=http://hydra:4445 + - DATABASE_USER=postgres + - DATABASE_PASSWORD=secret + - DATABASE_NAME=postgres + - DATABASE_HOST=psql + ports: + - "5002:5000" + restart: unless-stopped + psql: + image: postgres:11 + environment: + - POSTGRES_PASSWORD=secret diff --git a/user-panel b/user-panel new file mode 160000 index 0000000000000000000000000000000000000000..6797118ad3d197d79b68d621994da5971b254fa0 --- /dev/null +++ b/user-panel @@ -0,0 +1 @@ +Subproject commit 6797118ad3d197d79b68d621994da5971b254fa0