aboutsummaryrefslogtreecommitdiffstats
path: root/checker/docker-compose.yml
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-04-28 10:51:50 +0200
committerLouis Burda <quent.burda@gmail.com>2021-04-28 10:51:50 +0200
commit8aac44bb98af5442e29c8cb9a5a4acbe40d96bb2 (patch)
treeb5cea78af979ad734edf5835f1917b172e09cfd7 /checker/docker-compose.yml
parent53156862fa68b130c9a57f2824275f99017929ac (diff)
downloadenowars5-service-stldoctor-8aac44bb98af5442e29c8cb9a5a4acbe40d96bb2.tar.gz
enowars5-service-stldoctor-8aac44bb98af5442e29c8cb9a5a4acbe40d96bb2.zip
added sample service templates, basic service outline and moved service info to documentation dir
Diffstat (limited to 'checker/docker-compose.yml')
-rw-r--r--checker/docker-compose.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/checker/docker-compose.yml b/checker/docker-compose.yml
new file mode 100644
index 0000000..6a12111
--- /dev/null
+++ b/checker/docker-compose.yml
@@ -0,0 +1,23 @@
+version: '3'
+services:
+ # Give your container proper names!
+ n0t3b00k-checker:
+ build: .
+ # The checker runs a HTTP interfaces, so we need to map port 3031 to the outside (port 8000).
+ ports:
+ - 8000:3031
+ environment:
+ - MONGO_ENABLED=1
+ - MONGO_HOST=n0t3b00k-mongo
+ - MONGO_PORT=27017
+ - MONGO_USER=n0t3b00k_checker
+ - MONGO_PASSWORD=n0t3b00k_checker
+
+ # The python checkerlib requires a mongo db!
+ n0t3b00k-mongo:
+ image: mongo
+ volumes:
+ - ./data:/data/db
+ environment:
+ MONGO_INITDB_ROOT_USERNAME: n0t3b00k_checker
+ MONGO_INITDB_ROOT_PASSWORD: n0t3b00k_checker \ No newline at end of file