From b2b445d21e04aa45ce23e73fe3f34b29558d5c72 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Sun, 9 Jan 2022 14:44:56 +0000 Subject: [PATCH] [TOOLS][DOCKER] Add pa11y and nginx container to tooling toolchain --- docker/tooling/Dockerfile | 2 ++ docker/tooling/docker-compose.yaml | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/docker/tooling/Dockerfile b/docker/tooling/Dockerfile index 0fcb8fd0c4..3896571d03 100644 --- a/docker/tooling/Dockerfile +++ b/docker/tooling/Dockerfile @@ -6,3 +6,5 @@ RUN apk update \ && apk add --no-cache $PHPIZE_DEPS runuser \ && pecl install xdebug \ && docker-php-ext-enable xdebug + +RUN apk add npm && npm install -g pa11y diff --git a/docker/tooling/docker-compose.yaml b/docker/tooling/docker-compose.yaml index 698e3418f3..4f29c2135c 100644 --- a/docker/tooling/docker-compose.yaml +++ b/docker/tooling/docker-compose.yaml @@ -22,6 +22,28 @@ services: - db.env command: /entrypoint.sh + nginx: + image: nginx:alpine + depends_on: + - php + restart: always + tty: false + # ports: + # - "8080:80" + # - "4443:443" + volumes: + # Nginx + - ../nginx/nginx.conf:/var/nginx/social.conf + - ../nginx/domain.sh:/var/nginx/domain.sh + # Certbot + - ../certbot/www:/var/www/certbot + - ../certbot/.files:/etc/letsencrypt + # social + - ../../public:/var/www/social/public + env_file: + - ../bootstrap/bootstrap.env + command: /bin/sh -c '/var/nginx/domain.sh; nginx -g "daemon off;"' + db: image: postgres:alpine environment: