new: image container compose
- container e imagen para el redirect de main domain a subdomain
This commit is contained in:
4
redirect-domain-subdomain/Dockerfile
Normal file
4
redirect-domain-subdomain/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Dockerfile
|
||||||
|
FROM nginx:alpine
|
||||||
|
|
||||||
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
6
redirect-domain-subdomain/docker-compose.yml
Normal file
6
redirect-domain-subdomain/docker-compose.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# docker-compose.yml
|
||||||
|
services:
|
||||||
|
redirect:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- "9003:80"
|
||||||
9
redirect-domain-subdomain/nginx.conf
Normal file
9
redirect-domain-subdomain/nginx.conf
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# nginx.conf
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name williamscontreras.cl;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
return 301 http://portfolio.williamscontreras.cl;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user