generated from VLADIMIR/template_frontend
add docker compose
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user