mirror of
https://github.com/danilt2000/Alma-vid.git
synced 2025-12-09 19:49:28 +02:00
Add Docker setup for Alma-vid React app
Introduces Dockerfile, docker-compose.yml, .dockerignore, nginx.conf, and a Docker-specific README to enable containerized builds and deployment for the React application using Node.js and nginx. Includes optimized nginx configuration for static assets, security headers, gzip compression, and React Router support.
This commit is contained in:
19
docker-compose.yml
Normal file
19
docker-compose.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
alma-vid:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
BUILD_CONFIGURATION: production
|
||||
ports:
|
||||
- "80:80"
|
||||
container_name: alma-vid-app
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
volumes:
|
||||
# Optional: mount custom nginx config
|
||||
# - ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
- ./logs:/var/log/nginx
|
||||
Reference in New Issue
Block a user