mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-22 08:13:18 +01:00
Merge pull request #238 from ChristianLempa/nginx_dockercompose-1
Nginx_dockercompose-1
This commit is contained in:
commit
928512e25f
8
docker-compose/nginx/config/default.conf
Normal file
8
docker-compose/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
docker-compose/nginx/data/index.html
Normal file
1
docker-compose/nginx/data/index.html
Normal file
@ -0,0 +1 @@
|
||||
this is a test website...
|
13
docker-compose/nginx/docker-compose.yaml
Normal file
13
docker-compose/nginx/docker-compose.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user