Docker compose, nexus3 with ssl support
Docker compose, nexus3 with ssl support, docker-proxy and anonymous pulling
Install docker-compose in virtualenv
# Data volume root dir
export VOLUME_PATH=/srv/nexus-data
# will be accessable with https://SERVER_NAME
export SERVER_NAME=nexus.sandbox.example.com
# docker dev repo with anonymous push/pull
export DOCKER_DEV_NAME=docker-dev.sandbox.example.com
# docker virtual repo with anonymous pull
export DOCKER_VIRTUAL_NAME=docker-virtual.sandbox.example.com
# will be used in docker-proxy upstream configuration
export UPSTREAM_DOCKER_REPO=https://docker-prod-virtual.docker.example.com
ssl.key
and ssl.crt
files in in nginx/ssl/
directoryImplemeted by running curl
with related json
files
env.config
Please check ./manage.sh for help
Usage: ./manage.sh ACTION
ACTION:
init [Optional] generate config files,
check ssl keys, build required images
status get containers status
debug run docker-compose in foreground
start start all containers in background
stop stop all containers
SERVER_NAME
DOCKER_DEV_NAME
DOCKER_VIRTUAL_NAME
# 1. nexus web interface available https://nexus.sandbox.example.com
# with admin:admin123 (nexus default credentials)
SERVER_NAME=nexus.sandbox.example.com
# 2. pushing to dev
docker push dev-nexus.sandbox.example.com/my-container:v1.0.0
# 3. pulling from virtual, which is dev+UPSTREAM_DOCKER_REPO
docker pull virtual-nexus.sandbox.example.com/debian:jessie