diff --git a/.gitignore b/.gitignore index b39fa863..b4eabee3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea node_modules .turbo +.env \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 46e90f42..4f00bac7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,11 +50,3 @@ COPY --from=build /app/web/nginx.conf /etc/nginx/conf.d/default.conf WORKDIR /usr/share/nginx COPY --from=build /app/web ./html ENTRYPOINT sh -c "nginx -g 'daemon off;'" - - - - - - - - diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..fb69de22 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,16 @@ +version: "3.8" +services: + api: + build: + context: "." + dockerfile: Dockerfile + target: api + env_file: .env + restart: unless-stopped + + web: + build: + context: "." + dockerfile: Dockerfile + target: web + restart: unless-stopped