Commit c8b83ebf authored by ordinarymark's avatar ordinarymark

First commit

parents
# ./Dockerfile
FROM phusion/passenger-ruby23
# set the app directory var
ENV APP_HOME /home/app
ENV BUNDLE_PATH /bundle
WORKDIR $APP_HOME
RUN apt-get update -qq
# Install apt dependencies
RUN apt-get install -y --no-install-recommends \
build-essential \
curl libssl-dev \
git \
unzip \
zlib1g-dev \
libxslt-dev \
mysql-client \
sqlite3
ADD . .
EXPOSE 3000
CMD ["/sbin/my_init"]
# ./docker-compose.yaml
version: '2'
services:
app:
build: .
volumes:
- .:/home/app
environment:
RAILS_ENV: development
ports:
- "3000:3000"
volumes_from:
- bundle
depends_on:
- mysql
bundle:
image: busybox
volumes:
- /bundle
mysql:
image: mysql:5.6
environment:
- MYSQL_ROOT_PASSWORD=root
ports:
- "3306:3306"
volumes_from:
- db_data
db_data:
image: busybox
volumes:
- /var/lib/mysql
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment