Skip to content

Commit

Permalink
Fixing lints, again (BretFisher#97)
Browse files Browse the repository at this point in the history
* fixing lints

* trying input

* removing outdated changelogs. Using GH Projects

* fixing lints

* fixing lints

* adding badge
  • Loading branch information
BretFisher authored and Safiquddin committed Sep 12, 2023
1 parent 5c9ce12 commit 143f011
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Udemy Course Docker Mastery: with Kubernetes+Swarm from a Docker Captain

[![Lint Code Base](https://github.com/BretFisher/udemy-docker-mastery/actions/workflows/linter.yml/badge.svg)](https://github.com/BretFisher/udemy-docker-mastery/actions/workflows/linter.yml)

> Build, test, deploy containers with the best mega-course on Docker, Kubernetes, Compose, Swarm and Registry using DevOps
This repo is for use in my Udemy Courses "Docker Mastery" and "Swarm Mastery"
This repository is for use in my Udemy Courses "Docker Mastery" and "Swarm Mastery"

NOTE: As of July 2020 the new default branch is `main`, so please update your clone if you're still on `master` branch.

Expand Down
12 changes: 8 additions & 4 deletions swarm-app-1/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# Assignment: Create A Multi-Service Multi-Node Web App

## Goal: create networks, volumes, and services for a web-based "cats vs. dogs" voting app.
## Goal: create networks, volumes, and services for a web-based "cats vs. dogs" voting app

Here is a basic diagram of how the 5 services will work:

![diagram](./architecture.png)

- All images are on Docker Hub, so you should use editor to craft your commands locally, then paste them into swarm shell (at least that's how I'd do it)
- a `backend` and `frontend` overlay network are needed. Nothing different about them other than that backend will help protect database from the voting web app. (similar to how a VLAN setup might be in traditional architecture)
- The database server should use a named volume for preserving data. Use the new `--mount` format to do this: `--mount type=volume,source=db-data,target=/var/lib/postgresql/data`
- All images are on Docker Hub, so you should use editor to craft your commands locally,
then paste them into swarm shell (at least that's how I'd do it)
- a `backend` and `frontend` overlay network are needed.
Nothing different about them other than that backend will help protect database from the voting web app.
(similar to how a VLAN setup might be in traditional architecture)
- The database server should use a named volume for preserving data.
Use the new `--mount` format to do this: `--mount type=volume,source=db-data,target=/var/lib/postgresql/data`

### Services (names below should be service names)

Expand Down
2 changes: 2 additions & 0 deletions swarm-stack-5/make-data.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3

# this creates urlencode-friendly files without EOL
import urllib

Expand Down

0 comments on commit 143f011

Please sign in to comment.