mirror of
https://github.com/dominikhoebert/docker-projects.git
synced 2025-06-27 16:57:05 +00:00
added nginx
This commit is contained in:
parent
37d660b6fa
commit
71b773c034
@ -27,8 +27,6 @@
|
||||
|
||||
## ToDo
|
||||
|
||||
- Authentik
|
||||
- alpine
|
||||
- nginx
|
||||
- obsidian livesync
|
||||
- whoami
|
||||
@ -76,6 +74,7 @@
|
||||
- dawarich
|
||||
- olivetin
|
||||
- authentik
|
||||
- alpine
|
||||
|
||||
## Tools
|
||||
|
||||
|
20
nginx/compose.yml
Normal file
20
nginx/compose.yml
Normal file
@ -0,0 +1,20 @@
|
||||
# https://hub.docker.com/_/nginx
|
||||
|
||||
# Nginx (pronounced "engine-x") is an open source reverse proxy server for
|
||||
# HTTP, HTTPS, SMTP, POP3, and IMAP protocols, as well as a load balancer, HTTP cache, and a web server (origin server).
|
||||
|
||||
name: nginx
|
||||
services:
|
||||
nginx:
|
||||
image: nginx
|
||||
container_name: nginx
|
||||
ports:
|
||||
- 82:80
|
||||
# (optional) uncomment the line below to enable HTTPS
|
||||
# - 443:443
|
||||
volumes:
|
||||
- ./config/default.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
- ./data:/usr/share/nginx/html:ro
|
||||
environment:
|
||||
NGINX_HOST: localhost
|
||||
NGINX_PORT: 80
|
8
nginx/config/default.conf
Normal file
8
nginx/config/default.conf
Normal file
@ -0,0 +1,8 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
}
|
||||
}
|
1
nginx/data/index.html
Normal file
1
nginx/data/index.html
Normal file
@ -0,0 +1 @@
|
||||
this is a test website...
|
Loading…
x
Reference in New Issue
Block a user