Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/extrange/server-core
Core server containers
https://github.com/extrange/server-core
Last synced: about 1 month ago
JSON representation
Core server containers
- Host: GitHub
- URL: https://github.com/extrange/server-core
- Owner: extrange
- Created: 2020-09-24T08:38:30.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-06T13:37:22.000Z (9 months ago)
- Last Synced: 2024-04-13T15:49:10.531Z (8 months 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## 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/