Commit 2503bb1e authored by Jon Tavernier's avatar Jon Tavernier

create network on its own then use in services

parent 10cadbfd
......@@ -6,6 +6,8 @@ See each folder's ReadMe for more information.
## Reusable Components
- `./create_networks.sh`
- Create comment networks for other services to join so they can easily talk to one another.
- `./backend/`
- Launch to create backend components such as MySQL and Postgres DBs.
- Join other services to this network (see backend ReadMe) to connect to dbs.
......@@ -2,15 +2,5 @@
The purpose of these services is to standup re-usable backends. Other tools can join the same network to interact with these backends.
Network name: `jon-backend`
Join with...
```yaml
some-service:
networks:
- jon-backend
networks:
jon-backend:
external: true
Create the common networks via `../create_networks.sh` prior to starting these components via `./up.sh`.
```
......@@ -18,6 +18,4 @@ services:
- "jon-backend"
networks:
jon-backend:
driver: bridge
name: jon-backend
\ No newline at end of file
external: true
#! /usr/bin/env bash
docker network create jon-backend --driver bridge
......@@ -6,6 +6,8 @@ I played around with Metabase for an hour. It made an excellent first impressio
## First Time Setup
- Create the common networks.
- `../create_networks.sh`
- Start the backend databases.
- `../backend/up.sh`
- Launch `./docker-compose.yaml`.
......
......@@ -17,4 +17,4 @@ services:
- jon-backend
networks:
jon-backend:
external: true
\ No newline at end of file
external: true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment