Skip to content
Snippets Groups Projects
Verified Commit 47d463f3 authored by Mark's avatar Mark
Browse files

Add docker-compose file for testing

parent 7a5a537f
No related branches found
No related tags found
1 merge request!5Service Integration
[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
###########################################################################
####### 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
Subproject commit 6797118ad3d197d79b68d621994da5971b254fa0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment