mirror of
https://github.com/Alvin-Zilverstand/narrow_casting_system.git
synced 2026-03-06 13:24:46 +01:00
🐳 Update to modern Docker Compose v2 and fix GitHub Actions CI/CD
- Update docker-compose.yml to use modern 'docker compose' syntax (v2) - Fix GitHub Actions Docker login to use GitHub Container Registry (ghcr.io) - Add comprehensive GitHub repository settings documentation - Add alternative CI/CD workflow without Docker push requirement - Update package.json scripts for modern Docker commands - Add Docker security scanning and metadata extraction - Add repository permissions configuration for GitHub Actions - Update Docker documentation with modern practices This addresses the Docker login issues and modernizes the deployment process while providing fallback options for CI/CD implementation.
This commit is contained in:
@@ -6,18 +6,19 @@ This directory contains Docker configuration files for deploying the SnowWorld N
|
||||
|
||||
### Prerequisites
|
||||
- Docker Engine 20.10+
|
||||
- Docker Compose 1.29+
|
||||
- Docker Compose v2.0+
|
||||
|
||||
### Build and Run
|
||||
|
||||
```bash
|
||||
# Build the Docker image
|
||||
docker build -t snowworld-narrowcasting .
|
||||
# Navigate to docker directory
|
||||
cd deployment/docker
|
||||
|
||||
# Run with Docker Compose
|
||||
docker-compose up -d
|
||||
# Build and run with Docker Compose v2
|
||||
docker compose up -d
|
||||
|
||||
# Or run manually
|
||||
# Or build manually from root directory
|
||||
docker build -f deployment/docker/Dockerfile -t snowworld-narrowcasting .
|
||||
docker run -d -p 3000:3000 --name snowworld snowworld-narrowcasting
|
||||
```
|
||||
|
||||
@@ -26,6 +27,21 @@ docker run -d -p 3000:3000 --name snowworld snowworld-narrowcasting
|
||||
- Admin dashboard: http://localhost:3000/admin
|
||||
- Client display: http://localhost:3000/client?zone=reception
|
||||
|
||||
### Docker Compose v2 Commands
|
||||
```bash
|
||||
# Start services
|
||||
docker compose up -d
|
||||
|
||||
# Stop services
|
||||
docker compose down
|
||||
|
||||
# View logs
|
||||
docker compose logs -f
|
||||
|
||||
# Rebuild services
|
||||
docker compose build --no-cache
|
||||
```
|
||||
|
||||
## 📋 Docker Compose Services
|
||||
|
||||
### Services Overview
|
||||
|
||||
Reference in New Issue
Block a user