pihanepi/compose/nginx/compose.yaml

47 lines
1.8 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
# We also create and map a certs folder for TLS
- /home/hane/pihanepi/config/nginx/certs:/etc/nginx/certs/
# 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