- Add Docker configuration (Dockerfile, docker-compose.yml) - Add Nginx and Supervisor configuration - Add deployment documentation (DEPLOYMENT.md) - Complete Phase 3 data migration (63 entries, 63 docs, 28 subs) - Add responsive PDF viewer component - Fix date format to American (MM/DD/YYYY) - Update typography to match v1.0 - Add admin dashboard with full CRUD operations - Configure PostgreSQL with secure password - Connect to caddy_network for reverse proxy - Ready for production deployment
49 lines
982 B
YAML
49 lines
982 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: mad-lawsuit-v2
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:80"
|
|
volumes:
|
|
- ./storage:/var/www/html/storage
|
|
- ./storage/app/public/documents:/var/www/html/storage/app/public/documents
|
|
environment:
|
|
- APP_ENV=production
|
|
- APP_DEBUG=false
|
|
env_file:
|
|
- .env
|
|
networks:
|
|
- mad-network
|
|
- caddy_network
|
|
depends_on:
|
|
- postgres
|
|
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: mad-lawsuit-v2-db
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: mad_lawsuit_v2
|
|
POSTGRES_USER: mad_user
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
networks:
|
|
- mad-network
|
|
ports:
|
|
- "5433:5432"
|
|
|
|
networks:
|
|
mad-network:
|
|
driver: bridge
|
|
caddy_network:
|
|
external: true
|
|
|
|
volumes:
|
|
postgres_data:
|
|
driver: local
|