web: Do not store secret files in container

This commit is contained in:
Yi EungJun committed 2016-06-01 21:03:46 +09:00
1 parent 64163f2e05
commit 4bf0f4b64a
2 files changed
+2 -4

No files matched your search

+2
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
-4
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`.