Skip to content

Commit

Permalink
Get rid of nginx-unit
Browse files Browse the repository at this point in the history
Haven't got time to test it, and all data suggests
that the main problem is render time on user side,
not the page generation time.
  • Loading branch information
paskal committed Nov 7, 2024
1 parent a5966f8 commit b446e5f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 201 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/ci-build-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,3 @@ jobs:
--platform linux/amd64,linux/arm64 \
-f Dockerfile.8.3 \
-t ghcr.io/paskal/bitrix-php:8.3 -t paskal/bitrix-php:8.3 .
- name: build Nginx Unit PHP 8.2 image for ghcr.io and DockerHub
working-directory: config/php
if: ${{ github.ref == 'refs/heads/master' }}
env:
GITHUB_PACKAGE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_TOKEN }}
USERNAME: ${{ github.actor }}
run: |
echo ${GITHUB_PACKAGE_TOKEN} | docker login ghcr.io -u ${USERNAME} --password-stdin
echo ${DOCKER_HUB_TOKEN} | docker login -u paskal --password-stdin
docker buildx build --push \
--platform linux/amd64,linux/arm64 \
-f Dockerfile.unit.8.2 \
-t ghcr.io/paskal/nginx-unit-bitrix:8.2 -t paskal/nginx-unit-bitrix:8.2 .
52 changes: 0 additions & 52 deletions config/php/Dockerfile.unit.8.2

This file was deleted.

101 changes: 0 additions & 101 deletions config/php/nginx-unit.json

This file was deleted.

33 changes: 0 additions & 33 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,39 +80,6 @@ services:

restart: unless-stopped

nginx-unit:
build:
context: ./config/php
dockerfile: Dockerfile.unit
hostname: nginx-unit
container_name: nginx-unit
image: ghcr.io/paskal/nginx-unit-bitrix:8.2
restart: always
depends_on:
- memcached
- memcached-sessions
volumes:
- ./web/prod:/web/prod
- ./web/dev:/web/dev
- ./private/msmtprc:/etc/msmtprc
# MySQL socket to prevent transferring data through TCP
- ./private/mysqld:/var/run/mysqld
# Logs
- ./logs/php:/var/log/php
# configuration
- ./config/php/90-php.ini:/etc/php/php.ini
- ./config/php/nginx-unit.json:/docker-entrypoint.d/.unit.conf.json
# for monitoring purposes
- ./logs/nginx:/var/log/nginx
# switch timezone from UTC to Moscow
- ./config/php/moscow-timezone:/etc/timezone:ro
- ./config/php/moscow-localtime:/etc/localtime:ro
expose:
- "8090" # bitrix_urlrewrite_prod
- "8091" # bitrix_direct_prod
- "8092" # bitrix_urlrewrite_dev
- "8093" # bitrix_direct_dev

php:
build:
context: ./config/php
Expand Down

0 comments on commit b446e5f

Please sign in to comment.