add docker compose

This commit is contained in:
2026-07-21 15:07:08 +07:00
parent 19f3277207
commit c64955928e
+28
View File
@@ -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