Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
Align project structure with Lesstime: move docker/ to infra/dev/ and deploy/ to infra/prod/. Update all references in docker-compose, makefile, CI workflow, Dockerfile, .gitignore and .dockerignore. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
62 lines
2.0 KiB
YAML
62 lines
2.0 KiB
YAML
services:
|
|
web:
|
|
container_name: php-${DOCKER_APP_NAME}-apache
|
|
build:
|
|
context: ./infra/dev
|
|
dockerfile: Dockerfile
|
|
args:
|
|
DOCKER_PHP_VERSION: ${DOCKER_PHP_VERSION}
|
|
DOCKER_NODE_VERSION: ${DOCKER_NODE_VERSION}
|
|
CURRENT_UID: ${CURRENT_UID}
|
|
CURRENT_GID: ${CURRENT_GID}
|
|
environment:
|
|
PHP_IDE_CONFIG: serverName=${DOCKER_APP_NAME}-docker
|
|
XDEBUG_CLIENT_HOST: ${XDEBUG_CLIENT_HOST:-host.docker.internal}
|
|
XDEBUG_CONFIG: client_host=${XDEBUG_CLIENT_HOST:-host.docker.internal} client_port=9003
|
|
DATABASE_URL: "postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}?serverVersion=16&charset=utf8"
|
|
CORS_ALLOW_ORIGIN: ${CORS_ALLOW_ORIGIN}
|
|
volumes:
|
|
- ./:/var/www/html
|
|
- ~/.cache:/var/www/.cache # Pour la cache de composer
|
|
- ~/.config:/var/www/.config # Pour la config de yarn
|
|
- ~/.composer:/var/www/.composer # Pour la config de composer
|
|
- ./infra/dev/php.ini:/usr/local/etc/php/php.ini
|
|
- ./infra/dev/vhost.conf:/etc/apache2/sites-available/000-default.conf
|
|
- ./infra/dev/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
|
|
- ./LOG:/var/www/html/LOG
|
|
- ./LOG/logs_apache:/var/log/apache2/
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
depends_on:
|
|
- db
|
|
ports:
|
|
- "8081:80"
|
|
- "3001:3000"
|
|
restart: unless-stopped
|
|
db:
|
|
image: postgres:16-alpine
|
|
environment:
|
|
POSTGRES_DB: ${POSTGRES_DB}
|
|
POSTGRES_USER: ${POSTGRES_USER}
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
volumes:
|
|
- pg_data:/var/lib/postgresql/data
|
|
ports:
|
|
- "${POSTGRES_PORT:-5433}:5432"
|
|
restart: unless-stopped
|
|
|
|
adminer:
|
|
container_name: adminer-${DOCKER_APP_NAME}
|
|
image: adminer:latest
|
|
environment:
|
|
ADMINER_DEFAULT_SERVER: db
|
|
ADMINER_DESIGN: dracula
|
|
ports:
|
|
- "${ADMINER_PORT:-5050}:8080"
|
|
depends_on:
|
|
- db
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
pg_data:
|