new: image container compose

- container e imagen para el redirect de main domain a subdomain
This commit is contained in:
2025-01-15 21:37:33 -03:00
parent 26ffa255f7
commit 4d55243f14
3 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
# Dockerfile
FROM nginx:alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf

View File

@@ -0,0 +1,6 @@
# docker-compose.yml
services:
redirect:
build: .
ports:
- "9003:80"

View File

@@ -0,0 +1,9 @@
# nginx.conf
server {
listen 80;
server_name williamscontreras.cl;
location / {
return 301 http://portfolio.williamscontreras.cl;
}
}