Skip to content

Commit 996e570

Browse files
authored
Merge pull request SensorsIot#662 from Paraphraser/20230207-pgadmin4-old-menu
2023-02-07 pgadmin4 - old-menu branch
2 parents 6eaec7a + 15a7cd0 commit 996e570

File tree

6 files changed

+23
-8
lines changed

6 files changed

+23
-8
lines changed

.templates/pgadmin4/service.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
pgadmin4:
2+
container_name: pgadmin4
3+
image: gpongelli/pgadmin4-arm:latest-armv7
4+
platform: linux/arm/v7
5+
# image: gpongelli/pgadmin4-arm:latest-armv8
6+
restart: unless-stopped
7+
environment:
8+
- TZ=${TZ:-Etc/UTC}
9+
ports:
10+
- "5050:5050"
11+
volumes:
12+
- ./volumes/pgadmin4:/pgadmin4

.templates/postgres/postgres.env

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
POSTGRES_USER=postuser
2-
POSTGRES_PASSWORD=postpassword
3-
POSTGRES_DB=postdb
1+
TZ=${TZ:-Etc/UTC}
2+
POSTGRES_USER=${POSTGRES_USER:-postuser}
3+
POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postpassword}
4+
POSTGRES_DB=${POSTGRES_DB:-postdb}

.templates/postgres/service.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
- "5432:5432"
99
volumes:
1010
- ./volumes/postgres/data:/var/lib/postgresql/data
11+
- ./volumes/postgres/db_backup:/backup

docs/Containers/PgAdmin4.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# pgAdmin4
2+
3+
Please refer to the [documentation on the master branch](https://sensorsiot.github.io/IOTstack/Containers/PgAdmin4/).

docs/Containers/PostgreSQL.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
# PostgreSQL
2-
## References
3-
- [Docker](https://hub.docker.com/_/postgres)
4-
- [Website](https://www.postgresql.org/)
5-
## About
6-
PostgreSQL is an SQL server, for those that need an SQL database. The database credentials can be found in the file `./volumes/postgres/postgres.env`. It is highly recommended to change the user, password and default database
72

3+
Please refer to the [documentation on the master branch](https://sensorsiot.github.io/IOTstack/Containers/PostgreSQL/).

menu.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ declare -A cont_array=(
3333
[mosquitto]="Eclipse-Mosquitto"
3434
[prometheus]="Prometheus"
3535
[postgres]="Postgres"
36+
[pgadmin4]="pgadmin4"
3637
[timescaledb]="Timescaledb"
3738
[mariadb]="MariaDB (MySQL fork)"
3839
[adminer]="Adminer"
@@ -83,6 +84,7 @@ declare -a keylist=(
8384
"prometheus"
8485
"mariadb"
8586
"postgres"
87+
"pgadmin4"
8688
"timescaledb"
8789
"transmission"
8890
"adminer"

0 commit comments

Comments
 (0)