diff --git a/Dockerfile b/docker/Dockerfile similarity index 98% rename from Dockerfile rename to docker/Dockerfile index 5e622e4..8139e04 100644 --- a/Dockerfile +++ b/docker/Dockerfile @@ -20,4 +20,5 @@ RUN rm -rf ./* # Copy static assets from builder stage COPY --from=builder /app/dist . # Containers run nginx with global directives and daemon off +EXPOSE 80 ENTRYPOINT ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml new file mode 100644 index 0000000..0e0c3c2 --- /dev/null +++ b/docker/docker-compose.yml @@ -0,0 +1,11 @@ +version: "3.9" +services: + frontend: + build: + context: "../" + dockerfile: ./docker/Dockerfile + ports: + - "8080:80" + environment: + - VITE_BACKEND_URL=http://localhost:7000 + - VITE_INSTANCE_URL=http://localhost:80