From 2cd5d77d97ef5f566cb5161635d3c9b31b42cd5c Mon Sep 17 00:00:00 2001 From: Paul Sanders Date: Thu, 7 Dec 2023 14:25:57 -0500 Subject: [PATCH] Add docker compose file --- docker-compose.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..66d8df8 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,42 @@ +version: "3" + +services: + open-edc: + image: open-edc:dev + build: + context: . + container_name: open-edc + depends_on: + - db + ports: + - "8000:8000" + environment: + - MONGO_INITDB_DATABASE=open_edc + - MONGO_INITDB_ROOT_USERNAME=mongo + - MONGO_INITDB_ROOT_PASSWORD=mongo_password + - MONGO_PORT=27017 + - MONGO_HOST=db + - SECRET_KEY=secret + volumes: + - type: bind + source: . + target: /open-edc + read_only: false + db: + image: mongo:7.0 + volumes: + - db-data:/data/db + environment: + - MONGO_INITDB_DATABASE=open_edc + - MONGO_INITDB_ROOT_USERNAME=mongo + - MONGO_INITDB_ROOT_PASSWORD=mongo_password + expose: + - 27017 + ports: + - "27017:27017" + +volumes: + db-data: + +networks: + achievaim: