Here's how to create a Docker network and deploy a set of Docker compose files. We use the concept of metastack to deploy multiple stacks and have some labels and naming conventions to group them together:

$ docker network create \  --driver=weaveworks/net-plugin:2.1.3 \  --subnet= \  --attachable \  parse_net$ docker volume create mongo_data$ docker stack deploy -c mongodb.yml         parse_01$ docker stack deploy -c parse.yml           parse_02$ docker stack deploy -c parse_dashboard.yml parse_03$ docker stack deploy -c ingress.yml         parse_04

While deploying things on production, we do not set up the network and volumes with any Docker compose files. All stacks should refer to external volumes and networks.

Starting with MongoDB, we have ...

Get Docker for Serverless Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.