feat: CI/CD pipeline setup complete - Ansible playbooks updated, secrets configured, workflow ready
This commit is contained in:
@@ -5,9 +5,8 @@ services:
|
||||
context: docker/nginx
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "${APP_PORT:-8000}:80"
|
||||
- "8080:80"
|
||||
- "${APP_SSL_PORT:-443}:443"
|
||||
- "8888:80"
|
||||
- "8443:443"
|
||||
environment:
|
||||
- APP_ENV=${APP_ENV:-development}
|
||||
healthcheck:
|
||||
@@ -23,7 +22,6 @@ services:
|
||||
max-file: "${LOG_MAX_FILE:-2}"
|
||||
volumes:
|
||||
- ./:/var/www/html:${VOLUME_MODE:-cached}
|
||||
#- ./ssl:/etc/nginx/ssl:ro # SSL-Zertifikate mounten
|
||||
- ./ssl:/var/www/ssl:ro
|
||||
depends_on:
|
||||
php:
|
||||
@@ -103,6 +101,34 @@ services:
|
||||
memory: ${PHP_MEMORY_RESERVATION:-256M}
|
||||
cpus: ${PHP_CPU_RESERVATION:-0.5}
|
||||
|
||||
php-test:
|
||||
container_name: php-test
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/php/Dockerfile.test
|
||||
user: "1000:1000"
|
||||
profiles:
|
||||
- test
|
||||
volumes:
|
||||
- ./:/var/www/html:${VOLUME_MODE:-cached}
|
||||
- composer-cache:/home/appuser/.composer/cache
|
||||
- storage-cache:/var/www/html/storage/cache:rw
|
||||
- storage-queue:/var/www/html/storage/queue:rw
|
||||
- storage-discovery:/var/www/html/storage/discovery:rw
|
||||
- var-data:/var/www/html/var:rw
|
||||
environment:
|
||||
APP_ENV: testing
|
||||
APP_DEBUG: true
|
||||
DB_HOST: db
|
||||
REDIS_HOST: redis
|
||||
networks:
|
||||
- backend
|
||||
- cache
|
||||
env_file:
|
||||
- .env
|
||||
entrypoint: []
|
||||
command: ["php", "-v"]
|
||||
|
||||
db:
|
||||
container_name: db
|
||||
image: postgres:16-alpine
|
||||
@@ -115,7 +141,7 @@ services:
|
||||
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
|
||||
PGDATA: /var/lib/postgresql/data/pgdata
|
||||
ports:
|
||||
- "${DB_PORT:-5432}:5432"
|
||||
- "${DB_EXTERNAL_PORT:-5433}:5432"
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
- "${DB_CONFIG_PATH:-./docker/postgres/postgresql.conf}:/etc/postgresql/postgresql.conf:ro"
|
||||
@@ -195,8 +221,12 @@ services:
|
||||
condition: service_healthy
|
||||
volumes:
|
||||
- ./:/var/www/html:cached
|
||||
- worker-storage:/var/www/html/storage:rw # Complete separate storage for worker
|
||||
- ./src/Framework/CommandBus/storage:/var/www/html/src/Framework/CommandBus/storage:rw
|
||||
# Use same storage volumes as PHP container for consistency
|
||||
- storage-cache:/var/www/html/storage/cache:rw
|
||||
- storage-queue:/var/www/html/storage/queue:rw
|
||||
- storage-discovery:/var/www/html/storage/discovery:rw
|
||||
- ./storage/logs:/var/www/html/storage/logs:rw
|
||||
- var-data:/var/www/html/var:rw
|
||||
environment:
|
||||
- APP_ENV=${APP_ENV:-development}
|
||||
- WORKER_DEBUG=${WORKER_DEBUG:-false}
|
||||
|
||||
Reference in New Issue
Block a user