mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
restructure and folder rename
This commit is contained in:
parent
547ac52fa6
commit
6a30902a63
8
.gitignore
vendored
8
.gitignore
vendored
@ -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/*
|
||||
|
@ -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
|
||||
```
|
@ -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 `
|
@ -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 `
|
@ -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 `
|
Loading…
x
Reference in New Issue
Block a user