[POLISH] Docker setup fix + UI polish + project completion
- Fix Docker: add php.ini, correct env var names (DB_NAME/DB_USER/DB_PASS), add 002_email_log.sql to initdb, add Authorization header passthrough, add uploads volume, install opcache, create .dockerignore - UI polish: page fade-in transitions, skeleton loader CSS, staggered card animations, mobile sidebar backdrop overlay, keyboard focus-visible styles, button loading state, tooltip system, alert banners, tab component, custom scrollbar, print styles, clickable table rows - Add setButtonLoading() and _toggleSidebar() helpers to common.js - Update CLAUDE.md to reflect 100% project completion Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+17
-10
@@ -11,14 +11,17 @@ services:
|
||||
volumes:
|
||||
- ../application:/var/www/nis2-agile/application
|
||||
- ../public:/var/www/nis2-agile/public
|
||||
- nis2-uploads:/var/www/nis2-agile/public/uploads
|
||||
env_file:
|
||||
- ../.env
|
||||
environment:
|
||||
- APP_ENV=${APP_ENV:-production}
|
||||
- APP_DEBUG=${APP_DEBUG:-false}
|
||||
- DB_HOST=db
|
||||
- DB_PORT=3306
|
||||
- DB_DATABASE=${DB_DATABASE:-nis2_agile_db}
|
||||
- DB_USERNAME=${DB_USERNAME:-nis2_user}
|
||||
- DB_PASSWORD=${DB_PASSWORD}
|
||||
- DB_NAME=${DB_NAME:-nis2_agile_db}
|
||||
- DB_USER=${DB_USER:-nis2_user}
|
||||
- DB_PASS=${DB_PASS}
|
||||
- JWT_SECRET=${JWT_SECRET}
|
||||
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
|
||||
networks:
|
||||
@@ -29,7 +32,7 @@ services:
|
||||
|
||||
# ── Nginx Web Server ─────────────────────────────────────────────────────
|
||||
web:
|
||||
image: nginx:1.25-alpine
|
||||
image: nginx:1.27-alpine
|
||||
container_name: nis2-web
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
@@ -37,6 +40,7 @@ services:
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
- ../public:/var/www/nis2-agile/public:ro
|
||||
- nis2-uploads:/var/www/nis2-agile/public/uploads:ro
|
||||
networks:
|
||||
- nis2-network
|
||||
depends_on:
|
||||
@@ -48,17 +52,18 @@ services:
|
||||
container_name: nis2-db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
|
||||
MYSQL_DATABASE: ${DB_DATABASE:-nis2_agile_db}
|
||||
MYSQL_USER: ${DB_USERNAME:-nis2_user}
|
||||
MYSQL_PASSWORD: ${DB_PASSWORD}
|
||||
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD:-rootpass}
|
||||
MYSQL_DATABASE: ${DB_NAME:-nis2_agile_db}
|
||||
MYSQL_USER: ${DB_USER:-nis2_user}
|
||||
MYSQL_PASSWORD: ${DB_PASS}
|
||||
ports:
|
||||
- "${DB_PORT:-3306}:3306"
|
||||
- "${DB_EXPOSE_PORT:-3307}:3306"
|
||||
volumes:
|
||||
- nis2-db-data:/var/lib/mysql
|
||||
- ../docs/sql/001_initial_schema.sql:/docker-entrypoint-initdb.d/001_initial_schema.sql:ro
|
||||
- ../docs/sql/002_email_log.sql:/docker-entrypoint-initdb.d/002_email_log.sql:ro
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p${DB_ROOT_PASSWORD}"]
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p${DB_ROOT_PASSWORD:-rootpass}"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
@@ -70,6 +75,8 @@ services:
|
||||
volumes:
|
||||
nis2-db-data:
|
||||
driver: local
|
||||
nis2-uploads:
|
||||
driver: local
|
||||
|
||||
# ── Networks ─────────────────────────────────────────────────────────────
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user