Add nginx Docker Compose configuration with port 6767
This commit is contained in:
parent
8129b02730
commit
c6552a570e
25
nginx-compose.yaml
Normal file
25
nginx-compose.yaml
Normal file
@ -0,0 +1,25 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
container_name: nginx-webserver
|
||||
ports:
|
||||
- "6767:80"
|
||||
volumes:
|
||||
- ./html:/usr/share/nginx/html:ro
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- NGINX_HOST=localhost
|
||||
- NGINX_PORT=80
|
||||
networks:
|
||||
- nginx-network
|
||||
|
||||
networks:
|
||||
nginx-network:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
nginx-data:
|
||||
driver: local
|
Loading…
Reference in New Issue
Block a user