mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 07:43:13 +01:00
Add Dockerfile and docker-compose config
This commit is contained in:
parent
0a702a18be
commit
1b60c08e9f
3 changed files with 32 additions and 0 deletions
5
.dockerignore
Normal file
5
.dockerignore
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
tmp
|
||||||
|
log
|
||||||
|
.vagrant
|
||||||
|
.git
|
||||||
|
coverage
|
15
Dockerfile
Normal file
15
Dockerfile
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
FROM ruby:2.2
|
||||||
|
RUN apt-get update && apt-get install -y build-essential zlib1g-dev libsqlite3-dev nodejs nodejs-legacy
|
||||||
|
|
||||||
|
RUN mkdir -p /app
|
||||||
|
|
||||||
|
WORKDIR /tmp
|
||||||
|
COPY Gemfile Gemfile
|
||||||
|
COPY Gemfile.lock Gemfile.lock
|
||||||
|
RUN bundle install
|
||||||
|
|
||||||
|
ADD . /app
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD ["rails", "server", "-b", "0.0.0.0"]
|
12
docker-compose.yml
Normal file
12
docker-compose.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
web:
|
||||||
|
build: .
|
||||||
|
volumes:
|
||||||
|
- .:/app
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
links:
|
||||||
|
- elasticsearch
|
||||||
|
environment:
|
||||||
|
ELASTICSEARCH_URL: 'http://elasticsearch:9200'
|
||||||
|
elasticsearch:
|
||||||
|
image: elasticsearch:1.7
|
Loading…
Reference in a new issue