[TOOLS][DOCKER] Add pa11y and nginx container to tooling toolchain

This commit is contained in:
Hugo Sales 2022-01-09 14:44:56 +00:00
parent 528f6df240
commit b2b445d21e
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 24 additions and 0 deletions

View File

@ -6,3 +6,5 @@ RUN apk update \
&& apk add --no-cache $PHPIZE_DEPS runuser \ && apk add --no-cache $PHPIZE_DEPS runuser \
&& pecl install xdebug \ && pecl install xdebug \
&& docker-php-ext-enable xdebug && docker-php-ext-enable xdebug
RUN apk add npm && npm install -g pa11y

View File

@ -22,6 +22,28 @@ services:
- db.env - db.env
command: /entrypoint.sh 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: db:
image: postgres:alpine image: postgres:alpine
environment: environment: