Incorporate first round of feedback

This commit is contained in:
Jonathan Claudius 2017-06-12 15:07:31 -04:00
Родитель a9b66b0843
Коммит 33a3c86a20
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4BCDD990313DFA87
3 изменённых файлов: 29 добавлений и 26 удалений

Просмотреть файл

@ -1,22 +1,27 @@
version: '2'
services:
database:
image: mongo:latest
ports:
- 27017
container_name: database
restart: always
api:
build: ./docker/api
image: mozilla/ssh_scan_api
command: /app/bin/ssh_scan_api
ports:
- 8000
container_name: api
restart: always
worker:
build: ./docker/worker
image: mozilla/ssh_scan_worker
command: /app/bin/ssh_scan_worker
container_name: worker
restart: always
database:
image: mongo:latest
ports:
- 27017
container_name: database.internal
volumes:
- mongodb:/data/db
restart: always
api:
build: ./docker/api
command: /app/bin/ssh_scan_api
ports:
- 8000
environment:
- database.host=database.internal
container_name: api.internal
link: database.internal
restart: always
worker:
build: ./docker/worker
environment:
- api.host=api.internal
command: /app/bin/ssh_scan_worker
container_name: worker
restart: always

Просмотреть файл

@ -1,4 +1,4 @@
FROM ruby
FROM ruby:latest
MAINTAINER Jonathan Claudius
ENV PROJECT=github.com/mozilla/ssh_scan_api
@ -7,5 +7,4 @@ ADD . /app
WORKDIR /app
RUN gem install bundler
RUN bundle install
CMD /app/bin/ssh_scan_api
RUN bundle install

Просмотреть файл

@ -1,4 +1,4 @@
FROM ruby
FROM ruby:latest
MAINTAINER Jonathan Claudius
ENV PROJECT=github.com/mozilla/ssh_scan_api
@ -7,5 +7,4 @@ ADD . /app
WORKDIR /app
RUN gem install bundler
RUN bundle install
CMD /app/bin/ssh_scan_worker
RUN bundle install