Files
ddns/README.md
T

80 lines
1.8 KiB
Markdown
Raw Normal View History

2022-10-20 19:46:15 -04:00
## 👋 Welcome to ddns 🚀
ddns README
2022-02-14 16:44:26 -05:00
2022-10-20 19:46:15 -04:00
## Install my system scripts
```shell
sudo bash -c "$(curl -q -LSsf "https://github.com/systemmgr/installer/raw/main/install.sh")"
sudo systemmgr --config && sudo systemmgr install scripts
```
2026-05-12 20:06:13 -04:00
## Automatic install/update
```shell
dockermgr update ddns
```
## Install and run container
```shell
dockerHome="/var/lib/srv/$USER/docker/casjaysdevdocker/ddns/ddns/latest/rootfs"
mkdir -p "/var/lib/srv/$USER/docker/ddns/rootfs"
git clone "https://github.com/dockermgr/ddns" "$HOME/.local/share/CasjaysDev/dockermgr/ddns"
cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/ddns/rootfs/." "$dockerHome/"
docker run -d \
--restart always \
--privileged \
--name casjaysdevdocker-ddns-latest \
--hostname ddns \
-e TZ=${TIMEZONE:-America/New_York} \
-v "$dockerHome/data:/data:z" \
-v "$dockerHome/config:/config:z" \
-p 80:80 \
casjaysdevdocker/ddns:latest
```
## via docker-compose
```yaml
version: "2"
services:
ProjectName:
image: casjaysdevdocker/ddns
container_name: casjaysdevdocker-ddns
environment:
- TZ=America/New_York
- HOSTNAME=ddns
volumes:
- "/var/lib/srv/$USER/docker/casjaysdevdocker/ddns/ddns/latest/rootfs/data:/data:z"
- "/var/lib/srv/$USER/docker/casjaysdevdocker/ddns/ddns/latest/rootfs/config:/config:z"
ports:
- 80:80
restart: always
```
2022-10-20 19:46:15 -04:00
## Get source files
2026-05-12 20:06:13 -04:00
2022-10-20 19:46:15 -04:00
```shell
2026-05-12 20:06:13 -04:00
dockermgr download src casjaysdevdocker/ddns
2022-10-20 19:46:15 -04:00
```
2026-05-12 20:06:13 -04:00
2022-10-20 19:46:15 -04:00
OR
2026-05-12 20:06:13 -04:00
2022-10-20 19:46:15 -04:00
```shell
git clone "https://github.com/casjaysdevdocker/ddns" "$HOME/Projects/github/casjaysdevdocker/ddns"
```
2026-05-12 20:06:13 -04:00
2022-10-20 19:46:15 -04:00
## Build container
2026-05-12 20:06:13 -04:00
2022-10-20 19:46:15 -04:00
```shell
cd "$HOME/Projects/github/casjaysdevdocker/ddns"
buildx
```
2026-05-12 20:06:13 -04:00
2022-10-20 19:46:15 -04:00
## Authors
2026-05-12 20:06:13 -04:00
🤖 casjay: [Github](https://github.com/casjay) 🤖
⛵ casjaysdevdocker: [Github](https://github.com/casjaysdevdocker) [Docker](https://hub.docker.com/u/casjaysdevdocker) ⛵