First commit. Basic structure and vanilla nginx.

This commit is contained in:
Hane 2026-05-19 22:10:39 +02:00
commit 2707c7d0ee
10 changed files with 393 additions and 0 deletions

View file

@ -0,0 +1,45 @@
services:
nginx:
name: pinginx
#image: hane-dokuwiki-image:dokuwiki-fixed-volume
image: nginx:stable-alpine
build: ./
volumes:
# Main config file. Deprecated. Here so that I remember lol
# - /home/hane/data/nginx/nginx.conf:/etc/nginx/nginx.conf:ro,Z
# Configs folder, excluding modules subfolder. Since this is basically a linux mount, I can't
# seem to find a way to prevent modules from creating on the host, so for now I'm just
# mapping each file and the conf.d directory individually (T_T)
- /home/hane/pihanepi/config/nginx/conf.d:/etc/nginx/conf.d:ro,Z
- /home/hane/pihanepi/config/nginx/uwsgi_params:/etc/nginx/uwsgi_params:ro,Z
- /home/hane/pihanepi/config/nginx/scgi_params:/etc/nginx/scgi_params:ro,Z
- /home/hane/pihanepi/config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro,Z
- /home/hane/pihanepi/config/nginx/fastcgi_params:/etc/nginx/fastcgi_params:ro,Z
- /home/hane/pihanepi/config/nginx/fastcgi.conf:/etc/nginx/fastcgi.conf:ro,Z
# Logs folder
- /home/hane/pihanepi/datamount/nginx/log:/var/log/nginx:Z
# Web root folder
- /home/hane/pihanepi/datamount/nginx/web:/var/www:z
#- ./apache2.conf:/etc/apache2/apache2.conf
#- type: bind
# source: ./001-wiki.conf
# target: /etc/apache2/sites-enabled/001-wiki.conf
#- ./init.sh:/init.sh
#- ${WIKI_DATA:-/path/to/data}:/var/www/dokuwiki
ports:
- "8080:80/tcp"
#- "8080:80/udp"
- "44344:443/tcp"
#- "44344:443/udp"
#entrypoint: /init.sh
#entrypoint: bash
stdin_open: true # docker run -i
tty: true # docker run -t
#volumes:
# dokuwiki:
# external: true
# labels:
# - "dev.roboces.wiki=Dokuwiki volume"
# name: dokuwiki