diff --git a/.gitignore b/.gitignore index 14acc5b..1fdfab5 100644 --- a/.gitignore +++ b/.gitignore @@ -161,3 +161,4 @@ cython_debug/ #.idea/ *.png +!examples/**/*.png diff --git a/examples/full-stack-node-app/compose-viz.png b/examples/full-stack-node-app/compose-viz.png new file mode 100644 index 0000000..1b0976b Binary files /dev/null and b/examples/full-stack-node-app/compose-viz.png differ diff --git a/examples/full-stack-node-app/docker-compose.yml b/examples/full-stack-node-app/docker-compose.yml index 5e5387f..6dee7c9 100644 --- a/examples/full-stack-node-app/docker-compose.yml +++ b/examples/full-stack-node-app/docker-compose.yml @@ -26,6 +26,9 @@ services: - db - adminer - redis + networks: + - front-tier + - back-tier command: ["npm", "start"] frontend: @@ -43,6 +46,8 @@ services: - ./frontend:/usr/src depends_on: - api + networks: + - front-tier command: ["npm", "start"] db: @@ -51,6 +56,8 @@ services: service: postgres from: postgres.yml restart: always + networks: + - back-tier volumes: - "db-data:/data" - type: bind @@ -60,13 +67,21 @@ services: redis: image: "awesome/redis" restart: always + networks: + - back-tier expose: - 6379 adminer: image: "awesome/adminer" + networks: + - back-tier ports: - 8080:8080 - volumes: - db-data: +volumes: + db-data: + +networks: + front-tier: + back-tier: diff --git a/examples/non-normative/compose-viz.png b/examples/non-normative/compose-viz.png new file mode 100644 index 0000000..805094a Binary files /dev/null and b/examples/non-normative/compose-viz.png differ