Add pre-testing content for DNS.
This commit is contained in:
19
Config/DNS/Dockerfile
Normal file
19
Config/DNS/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# 2023-07-29
|
||||||
|
# Create website in node container and run it.
|
||||||
|
|
||||||
|
# Using Debian testing so that we use PHP >8. Otherwise the shebangs from
|
||||||
|
# the include files (#!/usr/bin/php) show up on the website.
|
||||||
|
FROM debian:testing
|
||||||
|
|
||||||
|
# Install Dependencies
|
||||||
|
RUN apt update && apt install -y dnsmasq
|
||||||
|
|
||||||
|
# Remove Existing Config
|
||||||
|
RUN systemctl stop dnsmasq
|
||||||
|
RUN rm -rfv /etc/{hosts,resolv.conf,dnsmasq.conf}
|
||||||
|
|
||||||
|
# Copy Configuration Files
|
||||||
|
COPY ./config/{hosts,resolv.conf,dnsmasq.conf} /etc/
|
||||||
|
|
||||||
|
# Start Container
|
||||||
|
CMD systemctl restart dnsmasq
|
0
Config/DNS/config/dnsmasq.conf.example
Normal file
0
Config/DNS/config/dnsmasq.conf.example
Normal file
0
Config/DNS/config/hosts.example
Normal file
0
Config/DNS/config/hosts.example
Normal file
0
Config/DNS/config/resolv.conf.example
Normal file
0
Config/DNS/config/resolv.conf.example
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# 2023-07-29
|
||||||
|
# Local DNS server which properly handles DNS splitting.
|
||||||
|
# Necessary when using junk ISP gateways and running a domain.
|
||||||
|
# https://wiki.debian.org/dnsmasq
|
||||||
|
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
restart: always
|
||||||
|
build: ./
|
||||||
|
ports:
|
||||||
|
- 8317:8080
|
||||||
|
Reference in New Issue
Block a user