feat: docker deployment
This commit is contained in:
+9
-4
@@ -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;"]
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user