Incorporate first round of feedback
This commit is contained in:
Родитель
a9b66b0843
Коммит
33a3c86a20
|
@ -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
|
Загрузка…
Ссылка в новой задаче