From d57e91e567ae9318c59b07d4ba7772357a579fa0 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 10 May 2024 23:55:28 +0200 Subject: [PATCH] Update build configuration files --- .gitignore | 2 +- Dockerfile | 2 +- docker-compose.yaml | 8 +++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index f1df0c3..01d9ebb 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ .editorconfig .env .gitattributes +.phpunit.result.cache vendor/ web/.csslintrc web/.eslintignore @@ -39,4 +40,3 @@ web/web.config .env docker-compose.override.yaml - diff --git a/Dockerfile b/Dockerfile index 3370c83..820517a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,7 +34,7 @@ RUN apt-get update -yqq \ RUN docker-php-ext-configure gd --with-jpeg -RUN docker-php-ext-install gd pdo_mysql zip +RUN docker-php-ext-install gd opcache pdo_mysql zip COPY --chown=app:app phpunit.xml* ./ diff --git a/docker-compose.yaml b/docker-compose.yaml index fa1f56c..f6453f6 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -5,10 +5,12 @@ x-proxy: &default-proxy - default - web labels: + - "traefik.enable=true" - "traefik.docker.network=traefik_proxy" - "traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host( - `${COMPOSE_PROJECT_NAME}.localhost`, + `${COMPOSE_PROJECT_NAME}.docker.localhost`, )" + - "traefik.http.routers.${COMPOSE_PROJECT_NAME}.tls=true" x-app: &default-app volumes: @@ -24,7 +26,7 @@ x-app: &default-app cpus: "${DOCKER_MYSQL_CPUS:-0}" memory: "${DOCKER_MYSQL_MEMORY:-0}" labels: - - "traefik.enabled=false" + - "traefik.enable=false" tty: true services: @@ -63,7 +65,7 @@ services: env_file: - .env labels: - - "traefik.enabled=false" + - "traefik.enable=false" environment: MYSQL_RANDOM_ROOT_PASSWORD: true profiles: [database]