From d9d975f2c3bb4161b94c7631a20f6e1535dc17ef Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Wed, 13 Jul 2016 21:45:56 +0200 Subject: [PATCH] Softline for ssl certificate --- Dockerfile | 4 +++- docker-compose.yml | 8 +------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index f81ce48..eecdbaf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,9 @@ WORKDIR /app/ ENV DOCKER_HOST unix:///tmp/docker.sock -VOLUME ["/etc/nginx/certs"] +# VOLUME ["/etc/nginx/certs"] +# Adding softlink to fit current cert structure +RUN mkdir -p /etc/nginx/certs && ln -s /ssl/cert.crt /etc/nginx/certs/zom.bi.crt ENTRYPOINT ["/app/docker-entrypoint.sh"] CMD ["forego", "start", "-r"] diff --git a/docker-compose.yml b/docker-compose.yml index 044f022..da052e8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,15 +1,9 @@ version: '2' services: nginx-proxy: - image: jwilder/nginx-proxy + build: . container_name: nginx-proxy ports: - "80:80" volumes: - /var/run/docker.sock:/tmp/docker.sock:ro - - whoami: - image: jwilder/whoami - environment: - - VIRTUAL_HOST=whoami.local -