feat: add Docker deployment configuration
- Add server Dockerfile with multi-stage build - Add frontend Dockerfile with Nginx - Add docker-compose.yml for orchestration - Add Nginx config with SSL support - Add deployment documentation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
50
docker-compose.yml
Normal file
50
docker-compose.yml
Normal file
@@ -0,0 +1,50 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
container_name: gala-redis
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
networks:
|
||||
- gala-network
|
||||
|
||||
server:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: packages/server/Dockerfile
|
||||
container_name: gala-server
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=3000
|
||||
- REDIS_URL=redis://redis:6379
|
||||
- CORS_ORIGINS=${CORS_ORIGINS:-*}
|
||||
depends_on:
|
||||
- redis
|
||||
networks:
|
||||
- gala-network
|
||||
|
||||
nginx:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: deploy/Dockerfile.frontend
|
||||
container_name: gala-nginx
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./deploy/ssl:/etc/nginx/ssl:ro
|
||||
depends_on:
|
||||
- server
|
||||
networks:
|
||||
- gala-network
|
||||
|
||||
volumes:
|
||||
redis_data:
|
||||
|
||||
networks:
|
||||
gala-network:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user