Commit ed87a7b9 authored by CAMPION Sebastien's avatar CAMPION Sebastien

Add docker compose config

parent cb497500
certs
.*.sw[op]
.stamp.*
.deps.*
......
......@@ -4,6 +4,12 @@ set -e
. prepare.sh
mkdir -p certs
if [ ! -f cert/server.key ] & [ ! -f certs/server.crt ]; then
openssl req -subj '/CN=localhost/O=Registry Demo/C=US' -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout certs/server.key -out certs/server.crt
fi
# build base image (if not present)
(set -x ; make base-debian)
......
......@@ -13,7 +13,7 @@ from .models import Webapp, Job, AllgoUser
def get_allowed_actions(actions):
# FIXME restrict to repository and acl define in DB
# FIXME restrict to repository and acl define in DB
return actions
......
......@@ -20,6 +20,16 @@ services:
volumes:
- "/data/dev/registry:/vol"
- "./certs:/certs"
environment:
REGISTRY_HTTP_TLS_CERTIFICATE: "/certs/server.crt"
REGISTRY_HTTP_TLS_KEY: "/certs/server.key"
REGISTRY_AUTH: "token"
REGISTRY_AUTH_TOKEN_REALM: "http://django:8080/tokens"
REGISTRY_AUTH_TOKEN_SERVICE: "allgo_registry"
REGISTRY_AUTH_TOKEN_ISSUER: "allgo_oauth"
REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE: "/certs/server.crt"
dev-controller:
container_name: dev-controller
......@@ -108,12 +118,21 @@ services:
volumes:
- "/data/dev/django:/vol"
- "./django:/opt/allgo"
- "./certs:/certs"
networks: [dev]
tty: true
stdin_open: true
environment:
SIGNING_KEY_PATH: "/certs/server.key"
SIGNING_KEY_TYPE: "RSA"
SIGNING_KEY_ALG: "RS256"
ISSUER: "allgo_oauth"
TOKEN_EXPIRATION: "3600"
TOKEN_TYPE: "JWT"
dev-smtpsink:
container_name: dev-smtpsink
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment