https://github.com/shelldandy/homelab
tools i self host
https://github.com/shelldandy/homelab
Last synced: 11 months ago
JSON representation
tools i self host
- Host: GitHub
- URL: https://github.com/shelldandy/homelab
- Owner: shelldandy
- License: agpl-3.0
- Created: 2024-10-19T02:42:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-24T22:24:17.000Z (11 months ago)
- Last Synced: 2025-02-24T23:26:43.478Z (11 months ago)
- Language: Shell
- Size: 138 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Compose Setup
This is a docker-compose setup for a few services I use on my homelab machine.
## Tips & Tricks
### Migrate from named to bind volume
```sh
docker-compose down
```
```yml
# Add to docker-compose
volume-copier:
image: alpine
volumes:
# Named volume
- data:/source
# Bind volume path
- ${CONFIG_PATH}/data:/destination
command: sh -c "cp -av /source/. /destination/ && echo 'Config copy complete'"
```
Then run this on the directory
```sh
docker-compose run --rm volume-copier
```
You can now update the volume paths in the services that need it.