Add '.dockerignore'

This commit is contained in:
Paul-Emmanuel Raoul 2018-11-27 11:20:17 +00:00
parent c1c8c33c85
commit 8beada58d5
4 changed files with 27 additions and 5 deletions

1
docker/.dockerignore Normal file
View File

@ -0,0 +1 @@
*.md

View File

@ -1,4 +1,4 @@
FROM debian:jessie-slim FROM debian:stretch-slim
LABEL MAINTAINER="theonlydoo <theonlydoo@gmail.com>" LABEL MAINTAINER="theonlydoo <theonlydoo@gmail.com>"

23
docker/docker-compose.yml Normal file
View File

@ -0,0 +1,23 @@
version: '3.3'
services:
db:
image: mongo:4
restart: always
volumes:
- db_data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: test
monkey:
depends_on:
- db
build: .
image: monkey:latest
ports:
- "5000:5000"
environment:
MONGO_URL: mongodb://root:test@db:27017/
volumes:
db_data:

View File

@ -1,4 +1,2 @@
[program:mongod]
command=/var/monkey_island/bin/mongodb/bin/mongod --quiet --dbpath /var/monkey_island/db
[program:monkey] [program:monkey]
command=/var/monkey_island/ubuntu/systemd/start_server.sh command=/var/monkey/monkey_island/ubuntu/systemd/start_server.sh