https://github.com/archellir/base_infrastructure
Infrastructure for base server
https://github.com/archellir/base_infrastructure
backup caddy docker filebrowser gitea portainer postgresql umami uptime-kuma
Last synced: about 1 year ago
JSON representation
Infrastructure for base server
- Host: GitHub
- URL: https://github.com/archellir/base_infrastructure
- Owner: archellir
- Created: 2022-10-23T21:09:44.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-02-03T05:41:29.000Z (about 1 year ago)
- Last Synced: 2025-02-03T06:29:31.867Z (about 1 year ago)
- Topics: backup, caddy, docker, filebrowser, gitea, portainer, postgresql, umami, uptime-kuma
- Language: Shell
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# base_infrastructure
Infrastructure for base server
#### For postgreSQL multiple databases scripts:
```sh
chmod +x scripts/create-multiple-postgresql-databases.sh
```
#### For [pgAdmin](https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html#mapped-files-and-directories):
```sh
sudo chown -R 5050:5050
```
#### Database backup & restore:
Backup:
```sh
docker exec -t pg_dumpall -c -U > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
```
Restore:
```sh
cat .sql | docker exec -i psql -U
```
#### Example of connection:
```sh
# host = container_name
postgres://username:password@container_name:port/db_name
```