Skip to content

Commit 44af83e

Browse files
committed
docs: document env overrides in compose file
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 77361eb commit 44af83e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,19 @@ services:
99
context: .
1010
dockerfile: .docker/Dockerfile
1111
args:
12+
# Optional overrides (defaults shown): UID=1000, GID=1000
1213
UID: ${UID:-1000}
1314
GID: ${GID:-1000}
1415
user: "${UID:-1000}:${GID:-1000}"
1516
working_dir: /var/www/html
1617
environment:
18+
# Optional overrides (defaults shown): XDEBUG_ENABLED=0, XDEBUG_MODE=off
1719
XDEBUG_ENABLED: ${XDEBUG_ENABLED:-0}
1820
XDEBUG_MODE: ${XDEBUG_MODE:-off}
1921
COMPOSER_HOME: /var/www/.composer
2022
volumes:
2123
- ./:/var/www/html
24+
# Optional override (default shown): COMPOSER_CACHE_DIR=/tmp/composer-cache
2225
- ${COMPOSER_CACHE_DIR:-/tmp/composer-cache}:/var/www/.composer/
2326
- ./.profile:/var/www/html/.profile
2427
command: ["bash", "-lc", "composer --version && bash"]

0 commit comments

Comments
 (0)