https://github.com/extrange/server-core
Core server containers
https://github.com/extrange/server-core
Last synced: 11 months ago
JSON representation
Core server containers
- Host: GitHub
- URL: https://github.com/extrange/server-core
- Owner: extrange
- Created: 2020-09-24T08:38:30.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-04-06T13:37:22.000Z (almost 2 years ago)
- Last Synced: 2024-04-13T15:49:10.531Z (almost 2 years ago)
- Language: HTML
- Homepage:
- Size: 249 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My Home Server
Containers comprising my home server. See my [blog] for more details.
- `compose.d/`: contains individual container specification files
- `services/`: individual container configuration/mounted volumes
- `nginx/`: reverse proxy configuration
Renovate config:
- Docker image digest updates:
- grouped
- committed directly (no notifications)
- note: they are treated separate from major/minor/patch updates in config
- Minor tag updates:
- grouped
- automerged (so I get email notifications)
- Major tag updates:
- individual PRs
- manually merge
## Updating Postgres containers across major versions
Move `data` to `old` and remount:
```yml
volumes:
- ../services/metabase/old:/var/lib/postgresql/data
```
Dump database:
```sh
pg_dumpall -U $POSTGRES_USER -l $POSTGRES_DB > /var/lib/postgresql/data/dump.sql
```
Upgrade image version, then mount the `old` directory to `old`:
```yml
volumes:
- ../services/metabase/data:/var/lib/postgresql/data
- ../services/metabase/old:/old
```
Rebuild DB:
```sh
psql -U $POSTGRES_USER -d $POSTGRES_DB -f /old/dump.sql
```
[blog]: https://nicholaslyz.com/blog/2022/05/22/my-self-hosting-journey/