Add new PHP container namespace

This commit is contained in:
cytopia 2018-03-05 21:50:02 +01:00
parent abb7b8dd5d
commit dcad1b2387
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
6 changed files with 13 additions and 12 deletions

11
.gitignore vendored
View File

@ -13,14 +13,11 @@
# CUSTOM
######################################
# Keep folders
!.keepme
# Ignore variable dat
/.env
/log/[a-z0-9-]*
/data/
/backups/
/data/*
/backups/*
# Ignore custom HTTPD configs
/cfg/apache-2.2/*.conf
@ -64,6 +61,10 @@
!/bash/bashrc.sh-example
!/bash/README.md
# Keep folders
!.keepme
######################################
# GENERIC
######################################

0
backups/.keepme Normal file
View File

0
data/.keepme Normal file
View File

View File

@ -63,7 +63,7 @@ services:
# PHP / HHVM
# ------------------------------------------------------------
php:
image: cytopia/${PHP_SERVER:-php-fpm-7.0}:latest
image: devilbox/php-fpm:${PHP_SERVER:-7.0}-work
restart: always
##
@ -80,6 +80,7 @@ services:
## Debug?
##
- DEBUG_COMPOSE_ENTRYPOINT
- DOCKER_LOGS=0
##
## UserID and GroupID
@ -136,7 +137,7 @@ services:
- ${HOST_PATH_HTTPD_DATADIR}:/shared/httpd
# Mount logs
- ${DEVILBOX_PATH}/log/${PHP_SERVER}:/var/log/php
- ${DEVILBOX_PATH}/log/php-fpm-${PHP_SERVER}:/var/log/php
# Mount Mail directory
#- ${DEVILBOX_PATH}/run/mail:/var/mail
@ -146,11 +147,11 @@ services:
# Mount devilbox user-defined *.ini files in order
# to overwrite the default PHP configuration
- ${DEVILBOX_PATH}/cfg/${PHP_SERVER}:/etc/php-custom.d:ro
- ${DEVILBOX_PATH}/cfg/php-fpm-${PHP_SERVER}:/etc/php-custom.d:ro
# Mount devilbox user-defined *.so files in order
# to load custom PHP modules
- ${DEVILBOX_PATH}/mod/${PHP_SERVER}:/usr/lib64/php/custom-modules:ro
- ${DEVILBOX_PATH}/mod/php-fpm-${PHP_SERVER}:/usr/lib64/php/custom-modules:ro
# Mount devilbox user-defined bash config
- ${DEVILBOX_PATH}/bash:/etc/bashrc-devilbox.d

View File

@ -172,7 +172,7 @@ DEVILBOX_UI_DISABLE=0
#PHP_SERVER=php-fpm-5.5
#PHP_SERVER=php-fpm-5.6
#PHP_SERVER=php-fpm-7.0
PHP_SERVER=php-fpm-7.1
PHP_SERVER=7.1
#PHP_SERVER=php-fpm-7.2
#PHP_SERVER=hhvm-latest

View File

@ -1,4 +1,3 @@
#!/bin/sh
CWD="/shared/httpd"
docker-compose exec --user devilbox php env TERM=xterm /bin/sh -c "cd ${CWD}; exec bash -l"
docker-compose exec --user devilbox php bash -l