Created
February 28, 2016 11:09
-
-
Save hirokazumiyaji/c73ac4c7413a34a744bb to your computer and use it in GitHub Desktop.
rails docker development environment
This file contains hidden or 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
app: | |
build: . | |
environment: | |
- DATABASE_USER=root | |
- DATABASE_PASSWORD=root | |
- DATABASE_HOST=database | |
ports: | |
- "3000" | |
links: | |
- database | |
- redis | |
volumes: | |
- ./:/root/api/ | |
database: | |
image: mysql | |
environment: | |
- MYSQL_DATABASE=hackeyworks | |
- MYSQL_ROOT_PASSWORD=root | |
redis: | |
image: redis |
This file contains hidden or 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
FROM ruby:2.3 | |
RUN apt-get update && \ | |
apt-get install -y libmysqlclient-dev git gcc g++ make | |
RUN echo "gem: --no-document" > /root/.gemrc | |
RUN mkdir -p /root/app | |
VOLUME /root/app | |
EXPOSE 3000 | |
WORKDIR /root/app | |
CMD bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment