Skip to content

Commit dbad159

Browse files
committed
Added customization of PHP uid/gid
Fixes #37
1 parent e1f5f02 commit dbad159

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

docker-env.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ MYSQL_PASSWORD=dev
1414
MYSQL_DATABASE=typo3
1515

1616
PHP_TIMEZONE=UTC
17+
PHP_UID=1001
18+
PHP_GID=1001

docker/main/entrypoint.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#!/bin/bash
22
set -e
33

4+
#############################
5+
## Init UID/GID
6+
#############################
7+
8+
usermod --uid "${PHP_UID}" --shell /bin/bash --home /home www-data
9+
groupmod --gid "${PHP_GID}" www-data
10+
411
#############################
512
## Init MySQL
613
#############################

0 commit comments

Comments
 (0)