adding in initial nginx docker

This commit is contained in:
talksik
2023-08-14 10:01:33 -07:00
parent cf0deb2d60
commit 6abbc9d5ef
3 changed files with 42 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
version: '3.3'
networks:
nginx:
services:
nginx:
image: nginx:latest
restart: unless-stopped
container_name: caddy
ports:
- 5000:5000 # container registry
- 80:80 # kubernetes - hello world
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./src/index.html:/usr/share/nginx/html/index.html
networks:
- nginx
registry:
image: registry:2
restart: unless-stopped
container_name: registry
ports:
- 5000:5000
volumes:
- /mnt/registry:/var/lib/registry
networks:
- nginx
+14
View File
@@ -0,0 +1,14 @@
# nginx.conf for a basic web server
events {}
http {
server {
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html;
}
}
}
+1
View File
@@ -0,0 +1 @@
<h1>Hello, World!</h1>