web: Do not store secret files in container

This commit is contained in:
Yi EungJun 2016-05-24 17:09:08 +09:00
parent 64163f2e05
commit 4bf0f4b64a
2 changed files with 2 additions and 4 deletions

View File

@ -25,4 +25,6 @@ web:
links: links:
- app:platform - app:platform
volumes: volumes:
# This directory must have cert files
- ./volumes/web/cert:/cert:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro

View File

@ -8,10 +8,6 @@ RUN ln -s /etc/nginx/sites-available/mattermost /etc/nginx/sites-enabled/matterm
ADD mattermost /etc/nginx/sites-available/ ADD mattermost /etc/nginx/sites-available/
ADD docker-entry.sh / ADD docker-entry.sh /
RUN mkdir /cert
ADD cert/cert.pem /cert/
ADD cert/private/key-no-password.pem /cert/
RUN chmod +x /docker-entry.sh RUN chmod +x /docker-entry.sh
# You can see the logs using `docker-compose logs web`. # You can see the logs using `docker-compose logs web`.