postgresql

This commit is contained in:
2025-11-17 22:01:03 +01:00
parent 8ca72f2f66
commit 315346a02b
2 changed files with 34 additions and 1 deletions

View File

@@ -1,5 +1,12 @@
# postgreSQL
```shell
sudo apt install -y postgresql-common
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
sudo apt install postgresql-18
```
## Docker
```shell
@@ -14,10 +21,10 @@ docker run --detach --name pgsql \
-e "POSTGRES_PASSWORD=ChangeMe" \
-e "POSTGRES_USER=iut" \
-v pgsql_data:/var/lib/postgresql \
-v "./:/docker-entrypoint-initdb.d" \
iut/pgsql:2025-12
```
```shell
image: iut/pgsql:2025-12
volumes: