feat: docker deployment

This commit is contained in:
2025-11-26 00:01:43 +01:00
parent 03d39f8a32
commit 5d9fc18ba5
2 changed files with 16 additions and 10 deletions
+9 -4
View File
@@ -1,5 +1,10 @@
FROM nginx:alpine:latest
WORKDIR /usr/share/nginx/html
COPY . .
CMD [ "nginx", "-g", "daemon off;" ]
# everyone use that
FROM nginx:alpine
RUN rm -rf /usr/share/nginx/html/*
COPY ./files /usr/share/nginx/html
EXPOSE 80
# Start
CMD ["nginx", "-g", "daemon off;"]
+7 -6
View File
@@ -1,11 +1,12 @@
services:
homepage:
container_name: landing
volumes:
- ./homepage:/usr/share/nginx/html:ro
landing:
build: .
container_name: mrforust_landing
ports:
- "8080:80"
restart: always
- "8085:80"
restart: unless-stopped
volumes:
- ./files:/usr/share/nginx/html
networks:
- traefik-proxy