services: nginx: name: pinginx #image: hane-dokuwiki-image:dokuwiki-fixed-volume image: nginx:stable-alpine restart: unless-stopped 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:z - /home/hane/pihanepi/config/nginx/scgi_params:/etc/nginx/scgi_params:z - /home/hane/pihanepi/config/nginx/nginx.conf:/etc/nginx/nginx.conf:z - /home/hane/pihanepi/config/nginx/fastcgi_params:/etc/nginx/fastcgi_params:z - /home/hane/pihanepi/config/nginx/fastcgi.conf:/etc/nginx/fastcgi.conf: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