Patches for the SSL certificate stuff
This commit is contained in:
parent
d9d975f2c3
commit
63347e82ed
2 changed files with 13 additions and 10 deletions
|
@ -30,7 +30,10 @@ ENV DOCKER_HOST unix:///tmp/docker.sock
|
|||
|
||||
# VOLUME ["/etc/nginx/certs"]
|
||||
# <madmaurice> Adding softlink to fit current cert structure
|
||||
RUN mkdir -p /etc/nginx/certs && ln -s /ssl/cert.crt /etc/nginx/certs/zom.bi.crt
|
||||
RUN mkdir -p /etc/nginx/certs && ln -s /ssl/cert.pem /etc/nginx/certs/zom.bi.crt && ln -s /ssl/cert.key /etc/nginx/certs/zom.bi.key
|
||||
|
||||
# Diffie Hallman generating different primes
|
||||
RUN openssl dhparam -out /etc/nginx/certs/zom.bi.dhparam.pem 2048
|
||||
|
||||
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|
||||
CMD ["forego", "start", "-r"]
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
version: '2'
|
||||
services:
|
||||
nginx-proxy:
|
||||
build: .
|
||||
container_name: nginx-proxy
|
||||
ports:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
nginxproxy:
|
||||
build: .
|
||||
ports:
|
||||
- "443:443"
|
||||
- "80:80"
|
||||
volumes:
|
||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||
volumes_from:
|
||||
- ssl:ro
|
||||
|
|
Reference in a new issue