Compare commits

..

No commits in common. "main" and "2024.07.2" have entirely different histories.

7 changed files with 19 additions and 39 deletions

View file

@ -58,7 +58,7 @@ jobs:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
with: with:
endpoint: tcp://docker-in-docker:2375 endpoint: tcp://forgejo-docker-in-docker-1:2375
platforms: linux/amd64,linux/arm64,linux/arm/v7 platforms: linux/amd64,linux/arm64,linux/arm/v7
- name: Build and push - name: Build and push

View file

@ -59,6 +59,8 @@ jobs:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
with:
endpoint: tcp://forgejo-docker-in-docker-1:2375
- name: Build and push - name: Build and push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6

View file

@ -1,8 +1,6 @@
# docker-ownDynDNS-netcup # ownDynDNS-netcup
[![Worklfow](https://code.offene.cloud/homelab/docker-ownDynDNS-netcup/badges/workflows/build_main.yaml/badge.svg)](https://code.offene.cloud/homelab/docker-ownDynDNS-netcup) [![Release](https://code.offene.cloud/homelab/docker-ownDynDNS-netcup/badges/release.svg)](https://code.offene.cloud/homelab/docker-ownDynDNS-netcup/releases) - [ownDynDNS-netcup](#owndyndns-netcup)
- [docker-ownDynDNS-netcup](#docker-owndyndns-netcup)
- [acknowledgments](#acknowledgments) - [acknowledgments](#acknowledgments)
- [Netcup configuration](#netcup-configuration) - [Netcup configuration](#netcup-configuration)
- [Container configuration](#container-configuration) - [Container configuration](#container-configuration)
@ -11,32 +9,26 @@
## acknowledgments ## acknowledgments
This container is based on the work of: This container is based on the work of:
* [Docker PHP](https://hub.docker.com/_/php) * [PHP](https://hub.docker.com/_/php)
* [Fernwerker ownDynDNS](https://github.com/fernwerker/ownDynDNS) * [Fernwerker ownDynDNS](https://github.com/fernwerker/ownDynDNS)
## Netcup configuration ## Netcup configuration
You need to create two dns entries beforehand: You need to create your dns entries beforehand:
| Host | Type | Destination | | Host | Type | Destination |
|----------|-------|--------------| |----------|-------|--------------|
| vpn | AAAA | IPv6 | | vpn | AAAA | IPv6 |
| vpn | A | IPv4 | | vpn | A | IPv4 |
| ddns | AAAA | IPv6 |
| ddns | A | IPv4 |
vpn.example.com -> the domain that gets updated
ddns.example.com -> the domain your Fritz!Box calls for updates
## Container configuration ## Container configuration
Create compose.yml and config in your app directory i.e.: Create docker-compose.yml and config in your app directory i.e.:
``` ```
mkdir -p /opt/docker/owndyndns mkdir -p /opt/docker/owndyndns
cd /opt/docker/owndyndns cd /opt/docker/owndyndns
# Create docker-compose.yml and copy the contents from repository file # Create docker-compose.yml and copy the contents from repository file
vi compose.yml vi docker-compose.yml
# Create config, copy the contents from repository example.config and change the parameters # Create config, copy the contents from repository example.config and change the parameters
vi config vi config
@ -49,8 +41,8 @@ docker compose up -d
* Login to your Fritz!Box * Login to your Fritz!Box
* Go to /Internet/Freigabe/DynDNS * Go to /Internet/Freigabe/DynDNS
* Set mark on "DynDNS benutzen" * Set mark on "DynDNS benutzen"
* Enter Update-URL: `https://ddns.example.com/update.php?user=<username>&password=<pass>&ipv4=<ipaddr>&ipv6=<ip6addr>&domain=<domain>` * Enter Update-URL: `https://<url of your webspace>/update.php?user=<username>&password=<pass>&ipv4=<ipaddr>&ipv6=<ip6addr>&domain=<domain>`
* You only have to change `https://ddns.example.com` (http without valid TLS certificate) * You only have to change `https://<url of your webspace>` (http without valid TLS certificate)
* Domainname: `vpn.example.com` * Domainname: `vpn.example.com`
* Username: Defined in config * Username: Defined in config
* Password: Defined in config * Password: Defined in config

View file

@ -1,5 +1,5 @@
# Get latest app version # Get latest app version
FROM alpine:3.22.0 FROM alpine:3.20.2
WORKDIR /clone-workspace WORKDIR /clone-workspace
RUN apk update && \ RUN apk update && \
apk upgrade && \ apk upgrade && \
@ -7,7 +7,7 @@ RUN apk update && \
git clone https://github.com/fernwerker/ownDynDNS.git git clone https://github.com/fernwerker/ownDynDNS.git
# Build container to run the app # Build container to run the app
FROM php:8.4.8-apache FROM php:8.3.9-apache
WORKDIR /var/www/html WORKDIR /var/www/html
RUN apt-get update && \ RUN apt-get update && \

View file

@ -1,4 +1,5 @@
--- version: "3"
services: services:
ownDynDNS: ownDynDNS:
image: sujiba/docker-owndyndns-netcup:latest image: sujiba/docker-owndyndns-netcup:latest

View file

@ -3,12 +3,12 @@
"extends": [ "extends": [
"local>homelab/renovate-config" "local>homelab/renovate-config"
], ],
"baseBranches": ["main"], "baseBranches": ["dev"],
"useBaseBranchConfig": "merge", "useBaseBranchConfig": "merge",
"packageRules": [ "packageRules": [
{ {
"description": "Automerge dependency updates", "description": "Automerge dependency updates",
"matchUpdateTypes": ["minor", "patch", "pin", "digest"], "matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"],
"automerge": true "automerge": true
} }
] ]

View file

@ -1,15 +0,0 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"local>homelab/renovate-config"
],
"baseBranches": ["dev"],
"useBaseBranchConfig": "merge",
"packageRules": [
{
"description": "Automerge dependency updates",
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"],
"automerge": true
}
]
}