Last active
August 29, 2015 13:56
-
-
Save gnue/8954141 to your computer and use it in GitHub Desktop.
goreman を使って docker で複数プロセスを起動する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sshd+nginx | |
# | |
# VERSION 0.0.1 | |
FROM ubuntu | |
RUN apt-get update | |
# sshd | |
RUN apt-get install -y openssh-server | |
RUN mkdir /var/run/sshd | |
RUN echo "root:foobar" | chpasswd | |
EXPOSE 22 | |
# nginx | |
RUN apt-get install -y nginx | |
RUN echo "\ndaemon off;" >> /etc/nginx/nginx.conf | |
EXPOSE 80 | |
# goreman | |
ADD goreman-linux64 /usr/local/bin/goreman | |
ADD Procfile /root/launch/Procfile | |
WORKDIR /root/launch | |
CMD ["goreman", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: nginx | |
sshd: /usr/sbin/sshd -D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
goreman を linux で使えるようにクロスコンパイルしておくこと