Skip to content

Commit

Permalink
fix docker, add docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lightlike committed Jun 21, 2024
1 parent 3dc0c6b commit 18c7321
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ COPY ansible/update-dns.yaml ansible
COPY entrypoint.sh .
RUN chmod +x entrypoint.sh

ENTRYPOINT [ "entrypoint.sh" ]
ENTRYPOINT [ "/netcup-dns/entrypoint.sh" ]
CMD [ "crond", "-f" ]
17 changes: 17 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: '2'
services:
netcup-dyndns:
container_name: netcup-dyndns
network_mode: "host"
environment:
SCHEDULE: "*/10 * * * *"
DOMAIN: "example.com"
MODE: "@ *"
IPV4: "yes"
IPV6: "yes"
CUSTOMER_ID: ${CUSTOMER_ID}
API_KEY: ${API_KEY}
API_PASSWORD: ${API_PASSWORD}
TZ: "Europe/Berlin"
restart: unless-stopped
image: ghcr.io/lightlike/netcup-dyndns:latest

0 comments on commit 18c7321

Please sign in to comment.