Merge pull request #238 from ChristianLempa/nginx_dockercompose-1

Nginx_dockercompose-1
This commit is contained in:
Christoph Schug 2024-04-26 17:07:01 +02:00 committed by GitHub
commit 928512e25f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,8 @@
server {
listen 80;
server_name _;
location / {
root /usr/share/nginx/html;
index index.html;
}
}

View File

@ -0,0 +1 @@
this is a test website...

View File

@ -0,0 +1,13 @@
---
services:
nginx:
image: docker.io/library/nginx:1.26.0-alpine
container_name: nginx
ports:
- 80: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
restart: unless-stopped