adding in initial nginx docker
This commit is contained in:
@@ -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
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<h1>Hello, World!</h1>
|
||||||
Reference in New Issue
Block a user