restructure and folder rename

This commit is contained in:
marcel-dempers 2022-10-28 08:48:06 +11:00
parent 547ac52fa6
commit 6a30902a63
16 changed files with 10 additions and 10 deletions

8
.gitignore vendored
View File

@ -17,7 +17,7 @@ kubernetes/portainer/business/volume*
#ignore postgres data for sample and database tutorials
pgdata
storage/databases/postgres/docker/backup/
storage/databases/postgres/docker/archive/
storage/databases/postgres/3-replication/postgres-1/archive/*
storage/databases/postgres/3-replication/postgres-2/archive/*
storage/databases/postgresql/docker/backup/
storage/databases/postgresql/docker/archive/
storage/databases/postgresql/3-replication/postgres-1/archive/*
storage/databases/postgresql/3-replication/postgres-2/archive/*

View File

@ -15,7 +15,7 @@ PostgreSQL [Docker Image](https://hub.docker.com/_/postgres)
## Run a simple PostgreSQL database (compose)
```
cd storage/databases/postgres/1-introduction
cd storage/databases/postgresql/1-introduction
docker compose up
```

View File

@ -11,7 +11,7 @@ Let's start where we left off, and review our simple PostgreSQL database:
## Run a simple PostgreSQL database (docker)
```
cd storage/databases/postgres/2-configuration
cd storage/databases/postgresql/2-configuration
docker run -it --rm --name postgres `
-e POSTGRES_PASSWORD=admin123 `
-v ${PWD}/pgdata:/var/lib/postgresql/data `

View File

@ -26,7 +26,7 @@ docker network create postgres
Start with instance 1:
```
cd storage/databases/postgres/3-replication
cd storage/databases/postgresql/3-replication
docker run -it --rm --name postgres-1 `
--net postgres `
@ -90,7 +90,7 @@ The utility is in the PostgreSQL docker image, so let's run it without running a
Note that we also mount our blank data directory as we will make a new backup in there:
```
cd storage/databases/postgres/3-replication
cd storage/databases/postgresql/3-replication
docker run -it --rm `
--net postgres `
@ -109,7 +109,7 @@ Now we should see PostgreSQL data ready for our second instance in `${PWD}/postg
## Start standby instance
```
cd storage/databases/postgres/3-replication
cd storage/databases/postgresql/3-replication
docker run -it --rm --name postgres-2 `
--net postgres `

View File

@ -9,7 +9,7 @@ wal_keep_size or by configuring a replication slot for the standby
```
cd storage\databases\postgres\docker
cd storage/databases/postgresqlql/docker
docker network create postgres
docker run -d --rm --name postgres-1 `