Skip to content

Commit 15dff4b

Browse files
committed
added root user for container phalcon
1 parent 1672060 commit 15dff4b

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

docker-compose.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ services:
77
#build: ./docker/8.4
88
#image: 'damalis/phalcon/8.4-fpm'
99
image: phalconphp/cphalcon:v5.9.3-php8.4
10+
user: root
1011
working_dir: /srv
1112
container_name: phalcon
1213
networks:
@@ -20,6 +21,9 @@ services:
2021
- type: bind
2122
source: ./php-fpm/php-fpm.d/z-www.conf
2223
target: '${PHP_INI_DIR_PREFIX}/php-fpm.d/z-www.conf'
24+
- type: bind
25+
source: ./packagecheck.sh
26+
target: '/tmp/packagecheck.sh'
2327
hostname: phalcon
2428
restart: unless-stopped
2529
ports:
@@ -37,7 +41,7 @@ services:
3741
labels:
3842
- 'docker-volume-backup.stop-during-backup=true'
3943
command: >
40-
bash -c "if [ -z \"$(php -m | grep 'psr')\" ]; then rm -fr php-psr > /dev/null 2>&1 && git clone https://github.com/jbboehr/php-psr.git && cd php-psr && /usr/local/bin/phpize && ./configure && make && make test && sudo make install && echo 'extension=psr.so' > ${PHP_INI_DIR_PREFIX}/php/conf.d/psr.ini; fi;
44+
bash -c "if [ -z \"$(php -m | grep 'psr')\" ]; then apt-get update && sh /tmp/packagecheck.sh 'git' && rm -fr php-psr > /dev/null 2>&1 && git clone https://github.com/jbboehr/php-psr.git && cd php-psr && /usr/local/bin/phpize && ./configure && make && make test && make install && echo 'extension=psr.so' > ${PHP_INI_DIR_PREFIX}/php/conf.d/psr.ini; fi;
4145
grep -qxF 'date.timezone = ${LOCAL_TIMEZONE}' ${PHP_INI_DIR_PREFIX}/php/conf.d/security.ini || echo 'date.timezone = ${LOCAL_TIMEZONE}' >> ${PHP_INI_DIR_PREFIX}/php/conf.d/security.ini; php-fpm"
4246
4347
webserver:
@@ -261,13 +265,6 @@ volumes:
261265
type: none
262266
device: ${DIRECTORY_PATH}/phalcon/html
263267
o: bind
264-
srv:
265-
name: phalcon-srv
266-
driver: local
267-
driver_opts:
268-
type: none
269-
device: ${DIRECTORY_PATH}/phalcon/srv
270-
o: bind
271268
db:
272269
name: ${DATABASE_CONT_NAME}-data
273270
db-backup-data:

0 commit comments

Comments
 (0)