Files
evening_detective_frontend/docker-compose.yml
T
2026-07-21 15:07:08 +07:00

29 lines
640 B
YAML

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