From b7dd70b558ce1e8ee25f0526ec60395e2a7191f3 Mon Sep 17 00:00:00 2001 From: Roman Dvorak Date: Thu, 7 Mar 2024 23:52:45 +0100 Subject: [PATCH] docker compose dev --- docker-compose_dev.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 docker-compose_dev.yml diff --git a/docker-compose_dev.yml b/docker-compose_dev.yml new file mode 100644 index 0000000..af3be51 --- /dev/null +++ b/docker-compose_dev.yml @@ -0,0 +1,41 @@ + +services: + mongo: + image: mongo + restart: always + volumes: + - intranet_db:/data/db + # - /home/roman/docker_test/db:/data/db + # - /home/roman/Dokumenty/dump_mongodb_20221111/USTintranet:/data/dump + ports: + - 27017:27017 + networks: + - internal + #environment: + # MONGO_INITDB_ROOT_USERNAME: root + # MONGO_INITDB_ROOT_PASSWORD: example + + intranet: + build: . + #depends_on: + # - mongo + volumes: + - intranet_data:/data + # - /home/roman/docker_test/intranet:/data/ + ports: + - 8888:8888 + networks: + - internal + - external + +networks: + internal: + driver: bridge + external: + driver: bridge + +volumes: + intranet_data: + intranet_db: + driver: local + #device: docker_volumes