diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..a2f8e9d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,28 @@ +version: '3.8' + +services: + evening_detective_frontend: + image: nginx:alpine + container_name: evening_detective_frontend + restart: unless-stopped + volumes: + - ./dist:/usr/share/nginx/html:ro + networks: + - crabs-network + ports: + - "80:80" + command: > + sh -c " echo 'server { + listen 80; + root /usr/share/nginx/html; + index index.html; + + location / { + try_files \$uri \$uri/ /index.html; + } + }' > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;' " + +networks: + crabs-network: + name: crabs-network + external: true