feat: docker deployment

This commit is contained in:
forust committed 2025-11-26 00:01:43 +01:00
1 parent 03d39f8a32
commit 5d9fc18ba5
2 files changed
+16 -10

No files matched your search

+9 -4
View File
@@ -1,5 +1,10 @@
FROM nginx:alpine:latest # everyone use that
WORKDIR /usr/share/nginx/html FROM nginx:alpine
COPY . .
CMD [ "nginx", "-g", "daemon off;" ] RUN rm -rf /usr/share/nginx/html/*
COPY ./files /usr/share/nginx/html
EXPOSE 80 EXPOSE 80
# Start
CMD ["nginx", "-g", "daemon off;"]
+7 -6
View File
@@ -1,11 +1,12 @@
services: services:
homepage: landing:
container_name: landing build: .
volumes: container_name: mrforust_landing
- ./homepage:/usr/share/nginx/html:ro
ports: ports:
- "8080:80" - "8085:80"
restart: always restart: unless-stopped
volumes:
- ./files:/usr/share/nginx/html
networks: networks:
- traefik-proxy - traefik-proxy