From b6a74f2eee79af660e6f5f618843fcbfc200cbac Mon Sep 17 00:00:00 2001 From: X4Lo Date: Sat, 7 Nov 2026 23:09:25 +0000 Subject: [PATCH] =?UTF-8?q?Add=20F=C3=A4lle=20trainer=20page=20with=20ngin?= =?UTF-8?q?x=20Docker=20setup=20for=20Coolify?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 2 + .gitignore | 2 + Dockerfile | 6 ++ README.md | 12 +++ docker-compose.yml | 6 ++ faelle.html | 231 +++++++++++++++++++++++++++++++++++++++++++++ nginx.conf | 15 +++ 7 files changed, 274 insertions(+) create mode 100644 .dockerignore create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 docker-compose.yml create mode 100644 faelle.html create mode 100644 nginx.conf diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..35cdaf3 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.git +README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd4f2b0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +.DS_Store diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..757e4cf --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM nginx:1.27-alpine +COPY nginx.conf /etc/nginx/conf.d/default.conf +COPY faelle.html /usr/share/nginx/html/index.html +COPY faelle.html /usr/share/nginx/html/faelle.html +EXPOSE 80 +HEALTHCHECK --interval=30s --timeout=3s CMD wget -qO- http://127.0.0.1/ >/dev/null || exit 1 diff --git a/README.md b/README.md new file mode 100644 index 0000000..ccb2cc9 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# chadiapp2 + +Single-page German case trainer (`faelle.html`), served by nginx. + +## Coolify + +- Build pack: **Dockerfile** (or **Docker Compose** using `docker-compose.yml`) +- Port: **80** + +Local run: + + docker build -t chadiapp2 . && docker run -p 8080:80 chadiapp2 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..54609d3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,6 @@ +services: + web: + build: . + expose: + - "80" + restart: unless-stopped diff --git a/faelle.html b/faelle.html new file mode 100644 index 0000000..9d4db57 --- /dev/null +++ b/faelle.html @@ -0,0 +1,231 @@ + + + + + +Fälle – تعلّم Akkusativ, Dativ, Genitiv + + + + +
+ + + diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..9ba3a73 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,15 @@ +server { + listen 80; + server_name _; + root /usr/share/nginx/html; + index index.html; + + charset utf-8; + gzip on; + gzip_types text/html text/css application/javascript; + + location / { + try_files $uri $uri/ /index.html; + add_header Cache-Control "no-cache"; + } +}