Created
December 4, 2025 07:31
-
-
Save maulvi/283251195c9fa8dd437eaf1db7dcc288 to your computer and use it in GitHub Desktop.
docker nginx proxy manager + shared php fpm fastcgi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| networks: | |
| proxy-network: | |
| external: false | |
| services: | |
| nginx-proxy-manager: | |
| image: jc21/nginx-proxy-manager:latest | |
| ports: | |
| - 80:80 | |
| - 443:443 | |
| - 100.76.79.94:81:81 | |
| volumes: | |
| - ./data:/data | |
| - ./letsencrypt:/etc/letsencrypt | |
| - /home/labrax/www:/var/www/html | |
| networks: | |
| - proxy-network | |
| restart: always | |
| db: | |
| image: mariadb:lts | |
| restart: always | |
| env_file: | |
| - .env | |
| networks: | |
| - proxy-network | |
| adminer: | |
| image: adminer | |
| restart: always | |
| ports: | |
| - 100.76.79.94:8080:8080 | |
| networks: | |
| - proxy-network | |
| php-shared: | |
| image: vltruist/php-fpm:latest | |
| container_name: php-shared | |
| volumes: | |
| - /home/labrax/www:/var/www/html | |
| environment: | |
| PHP_FPM_PM_CONTROL: dynamic | |
| PHP_FPM_PM_MAX_CHILDREN: 75 | |
| PHP_FPM_PM_START_SERVERS: 12 | |
| PHP_FPM_PM_MIN_SPARE_SERVERS: 8 | |
| PHP_FPM_PM_MAX_SPARE_SERVERS: 20 | |
| PHP_FPM_PM_MAX_REQUESTS: 500 | |
| # PHP Settings - moderate | |
| PHP_MEMORY_LIMIT: 128M | |
| PHP_MAX_EXECUTION_TIME: 180 | |
| PHP_MAX_INPUT_VARS: 3000 | |
| PHP_UPLOAD_MAX_FILESIZE: 64M | |
| PHP_POST_MAX_SIZE: 64M | |
| # OPcache - moderate optimization | |
| PHP_OPCACHE_ENABLE: 1 | |
| PHP_OPCACHE_MEMORY_CONSUMPTION: 192 | |
| PHP_OPCACHE_INTERNED_STRINGS_BUFFER: 12 | |
| PHP_OPCACHE_MAX_ACCELERATED_FILES: 10000 | |
| PHP_OPCACHE_REVALIDATE_FREQ: 2 | |
| networks: | |
| - proxy-network | |
| restart: always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment