From 5ed12c644fa05f9e025b3d99726298ac6624c482 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20=C5=81opuch?= Date: Sat, 5 Jan 2019 14:14:11 +0100 Subject: [PATCH] added docker-compose with docker system volumes, that can be managed by docker volume command --- .../docker-compose-infrastructure.volumes.yml | 41 +++++++++++++++++++ ...t-docker-compose-infrastructure.volumes.sh | 1 + 2 files changed, 42 insertions(+) create mode 100644 compose/docker-compose-infrastructure.volumes.yml create mode 100755 compose/start-docker-compose-infrastructure.volumes.sh diff --git a/compose/docker-compose-infrastructure.volumes.yml b/compose/docker-compose-infrastructure.volumes.yml new file mode 100644 index 0000000..db92f3d --- /dev/null +++ b/compose/docker-compose-infrastructure.volumes.yml @@ -0,0 +1,41 @@ +version: "3.5" + +services: + mongo: + image: mongo:4 + container_name: mongo + ports: + - '27017:27017' + networks: + - dshop + volumes: + - mongovol:/data/db + + rabbitmq: + image: rabbitmq:3-management + container_name: rabbitmq + ports: + - '5672:5672' + - '15672:15672' + networks: + - dshop + volumes: + - rabbitmqvol:/var/lib/rabbitmq + + redis: + image: redis + container_name: redis + ports: + - '6379:6379' + networks: + - dshop + volumes: + - redisvol:/data + +volumes: + mongovol: + rabbitmqvol: + redisvol: +networks: + dshop: + name: dshop-network \ No newline at end of file diff --git a/compose/start-docker-compose-infrastructure.volumes.sh b/compose/start-docker-compose-infrastructure.volumes.sh new file mode 100755 index 0000000..5cb9048 --- /dev/null +++ b/compose/start-docker-compose-infrastructure.volumes.sh @@ -0,0 +1 @@ +docker-compose -f docker-compose-infrastructure.volumes.yml up \ No newline at end of file