mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-24 06:56:40 +00:00
232 lines
8.6 KiB
YAML
232 lines
8.6 KiB
YAML
# vim: set ft=yaml:
|
|
---
|
|
version: '2.3'
|
|
|
|
# ------------------------------------------------------------
|
|
# Yaml Default
|
|
# ------------------------------------------------------------
|
|
|
|
###
|
|
### Default PHP-FPM config
|
|
###
|
|
x-app: &default-php
|
|
env_file:
|
|
- ./.env
|
|
environment:
|
|
# Debug/Logging
|
|
- DEBUG_ENTRYPOINT=${DEBUG_ENTRYPOINT:-2}
|
|
- DOCKER_LOGS=1
|
|
# Enable/Disable PHP Modules
|
|
- ENABLE_MODULES=${PHP_MODULES_ENABLE}
|
|
- DISABLE_MODULES=${PHP_MODULES_DISABLE}
|
|
# Mail-catching
|
|
- ENABLE_MAIL=${PHP_MAIL_CATCH_ALL:-2}
|
|
dns:
|
|
- 172.16.238.100
|
|
depends_on:
|
|
- bind
|
|
|
|
|
|
# ------------------------------------------------------------
|
|
# PHP Services
|
|
# ------------------------------------------------------------
|
|
services:
|
|
|
|
php54:
|
|
<<: *default-php
|
|
image: devilbox/php-fpm:5.4-prod-0.149
|
|
hostname: php54
|
|
networks:
|
|
app_net:
|
|
ipv4_address: 172.16.238.201
|
|
volumes:
|
|
# Specific volumes
|
|
- ${DEVILBOX_PATH}/cfg/php-ini-5.4:/etc/php-custom.d:ro${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/cfg/php-fpm-5.4:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/cfg/php-startup-5.4:/startup.1.d:rw${MOUNT_OPTIONS}
|
|
# Generic volumes
|
|
- ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/autostart:/startup.2.d:rw${MOUNT_OPTIONS}
|
|
- devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
|
|
|
|
php55:
|
|
<<: *default-php
|
|
image: devilbox/php-fpm:5.5-prod-0.149
|
|
hostname: php55
|
|
networks:
|
|
app_net:
|
|
ipv4_address: 172.16.238.202
|
|
volumes:
|
|
# Specific volumes
|
|
- ${DEVILBOX_PATH}/cfg/php-ini-5.5:/etc/php-custom.d:ro${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/cfg/php-fpm-5.5:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/cfg/php-startup-5.5:/startup.1.d:rw${MOUNT_OPTIONS}
|
|
# Generic volumes
|
|
- ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/autostart:/startup.2.d:rw${MOUNT_OPTIONS}
|
|
- devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
|
|
|
|
php56:
|
|
<<: *default-php
|
|
image: devilbox/php-fpm:5.6-prod-0.149
|
|
hostname: php56
|
|
networks:
|
|
app_net:
|
|
ipv4_address: 172.16.238.203
|
|
volumes:
|
|
# Specific volumes
|
|
- ${DEVILBOX_PATH}/cfg/php-ini-5.6:/etc/php-custom.d:ro${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/cfg/php-fpm-5.6:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/cfg/php-startup-5.6:/startup.1.d:rw${MOUNT_OPTIONS}
|
|
# Generic volumes
|
|
- ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/autostart:/startup.2.d:rw${MOUNT_OPTIONS}
|
|
- devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
|
|
|
|
php70:
|
|
<<: *default-php
|
|
image: devilbox/php-fpm:7.0-prod-0.149
|
|
hostname: php70
|
|
networks:
|
|
app_net:
|
|
ipv4_address: 172.16.238.204
|
|
volumes:
|
|
# Specific volumes
|
|
- ${DEVILBOX_PATH}/cfg/php-ini-7.0:/etc/php-custom.d:ro${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/cfg/php-fpm-7.0:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/cfg/php-startup-7.0:/startup.1.d:rw${MOUNT_OPTIONS}
|
|
# Generic volumes
|
|
- ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/autostart:/startup.2.d:rw${MOUNT_OPTIONS}
|
|
- devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
|
|
|
|
php71:
|
|
<<: *default-php
|
|
image: devilbox/php-fpm:7.1-prod-0.149
|
|
hostname: php71
|
|
networks:
|
|
app_net:
|
|
ipv4_address: 172.16.238.205
|
|
volumes:
|
|
# Specific volumes
|
|
- ${DEVILBOX_PATH}/cfg/php-ini-7.1:/etc/php-custom.d:ro${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/cfg/php-fpm-7.1:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/cfg/php-startup-7.1:/startup.1.d:rw${MOUNT_OPTIONS}
|
|
# Generic volumes
|
|
- ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/autostart:/startup.2.d:rw${MOUNT_OPTIONS}
|
|
- devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
|
|
|
|
php72:
|
|
<<: *default-php
|
|
image: devilbox/php-fpm:7.2-prod-0.149
|
|
hostname: php72
|
|
networks:
|
|
app_net:
|
|
ipv4_address: 172.16.238.206
|
|
volumes:
|
|
# Specific volumes
|
|
- ${DEVILBOX_PATH}/cfg/php-ini-7.2:/etc/php-custom.d:ro${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/cfg/php-fpm-7.2:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/cfg/php-startup-7.2:/startup.1.d:rw${MOUNT_OPTIONS}
|
|
# Generic volumes
|
|
- ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/autostart:/startup.2.d:rw${MOUNT_OPTIONS}
|
|
- devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
|
|
|
|
php73:
|
|
<<: *default-php
|
|
image: devilbox/php-fpm:7.3-prod-0.149
|
|
hostname: php73
|
|
networks:
|
|
app_net:
|
|
ipv4_address: 172.16.238.207
|
|
volumes:
|
|
# Specific volumes
|
|
- ${DEVILBOX_PATH}/cfg/php-ini-7.3:/etc/php-custom.d:ro${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/cfg/php-fpm-7.3:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/cfg/php-startup-7.3:/startup.1.d:rw${MOUNT_OPTIONS}
|
|
# Generic volumes
|
|
- ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/autostart:/startup.2.d:rw${MOUNT_OPTIONS}
|
|
- devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
|
|
|
|
php74:
|
|
<<: *default-php
|
|
image: devilbox/php-fpm:7.4-prod-0.149
|
|
hostname: php74
|
|
networks:
|
|
app_net:
|
|
ipv4_address: 172.16.238.208
|
|
volumes:
|
|
# Specific volumes
|
|
- ${DEVILBOX_PATH}/cfg/php-ini-7.4:/etc/php-custom.d:ro${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/cfg/php-fpm-7.4:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/cfg/php-startup-7.4:/startup.1.d:rw${MOUNT_OPTIONS}
|
|
# Generic volumes
|
|
- ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/autostart:/startup.2.d:rw${MOUNT_OPTIONS}
|
|
- devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
|
|
|
|
php80:
|
|
<<: *default-php
|
|
image: devilbox/php-fpm:8.0-prod-0.149
|
|
hostname: php80
|
|
networks:
|
|
app_net:
|
|
ipv4_address: 172.16.238.209
|
|
volumes:
|
|
# Specific volumes
|
|
- ${DEVILBOX_PATH}/cfg/php-ini-8.0:/etc/php-custom.d:ro${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/cfg/php-fpm-8.0:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/cfg/php-startup-8.0:/startup.1.d:rw${MOUNT_OPTIONS}
|
|
# Generic volumes
|
|
- ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/autostart:/startup.2.d:rw${MOUNT_OPTIONS}
|
|
- devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
|
|
|
|
php81:
|
|
<<: *default-php
|
|
image: devilbox/php-fpm:8.1-prod-0.149
|
|
hostname: php81
|
|
networks:
|
|
app_net:
|
|
ipv4_address: 172.16.238.210
|
|
volumes:
|
|
# Specific volumes
|
|
- ${DEVILBOX_PATH}/cfg/php-ini-8.1:/etc/php-custom.d:ro${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/cfg/php-fpm-8.1:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/cfg/php-startup-8.1:/startup.1.d:rw${MOUNT_OPTIONS}
|
|
# Generic volumes
|
|
- ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/autostart:/startup.2.d:rw${MOUNT_OPTIONS}
|
|
- devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
|
|
|
|
php82:
|
|
<<: *default-php
|
|
image: devilbox/php-fpm:8.2-prod-0.149
|
|
hostname: php82
|
|
networks:
|
|
app_net:
|
|
ipv4_address: 172.16.238.211
|
|
volumes:
|
|
# Specific volumes
|
|
- ${DEVILBOX_PATH}/cfg/php-ini-8.2:/etc/php-custom.d:ro${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/cfg/php-fpm-8.2:/etc/php-fpm-custom.d:ro${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/cfg/php-startup-8.2:/startup.1.d:rw${MOUNT_OPTIONS}
|
|
# Generic volumes
|
|
- ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd:rw${MOUNT_OPTIONS}
|
|
- ${DEVILBOX_PATH}/supervisor:/etc/supervisor/custom.d:rw${MOUNT_OPTIONS}
|
|
# - ${DEVILBOX_PATH}/autostart:/startup.2.d:rw${MOUNT_OPTIONS}
|
|
- devilbox-mail:/var/mail:rw${MOUNT_OPTIONS}
|