diff --git a/docker-compose.yml b/docker-compose.yml index a5632e4..8b73a11 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,10 +1,8 @@ services: nginx: - image: nginx:alpine + build: ./nginx ports: - "80:80" - volumes: - - ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro depends_on: - frontend - backend diff --git a/nginx/Dockerfile b/nginx/Dockerfile new file mode 100644 index 0000000..afc6a5d --- /dev/null +++ b/nginx/Dockerfile @@ -0,0 +1,2 @@ +FROM nginx:alpine +COPY nginx.conf /etc/nginx/conf.d/default.conf \ No newline at end of file