From c64955928e4c4f4f47f995e950d4b09b6769ff9e Mon Sep 17 00:00:00 2001 From: Fedorov Vladimir Date: Tue, 21 Jul 2026 15:07:08 +0700 Subject: [PATCH] add docker compose --- docker-compose.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 docker-compose.yml 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