You will have started an openclinica server (mshunshin/openclinica-docker) and associated postgres server and put them on a docker network called trial-net
You might also have started a RANDI sever (mshunshin/randi-docker) and associated postgres server to do your randomisation, and put them on the same network - trial-net
docker volume create caddycert
git clone https://github.com/mshunshin/openclinica_caddy-docker.git
cd openclinica_caddy-docker
You will need to put in your own email address and site URL into the Caddy file.
First copy the template Caddyfile
cp ./caddy.config/Caddyfile.new ./caddy.config/Caddyfile
Then edit it
vi .caddy.config/Caddyfile
(common) {
log / stdout "{combined}"
errors stderr
tls [email protected]
}
replace_this_with_your_domain.com {
import common
proxy /OpenClinica oc:8080 {
transparent
}
proxy /randi randi:8080 {
transparent
}
}
docker build -t occaddy .
Put it on the correct network
docker run -d -p 80:80 -p 443:443 --name occaddy -v caddycert:/root/.caddy --network trial-net occaddy