-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (27 loc) · 975 Bytes
/
docker-compose.yml
File metadata and controls
29 lines (27 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# SPDX-FileCopyrightText: 2026 LibreSign
# SPDX-License-Identifier: AGPL-3.0-or-later
name: xobject-template-${COMPOSE_PROJECT_SUFFIX:-default}
services:
php:
build:
context: .
dockerfile: .docker/Dockerfile
args:
# Optional overrides (defaults shown): UID=1000, GID=1000
UID: ${UID:-1000}
GID: ${GID:-1000}
user: "${UID:-1000}:${GID:-1000}"
working_dir: /var/www/html
environment:
# Optional overrides (defaults shown): XDEBUG_ENABLED=0, XDEBUG_MODE=off
XDEBUG_ENABLED: ${XDEBUG_ENABLED:-0}
XDEBUG_MODE: ${XDEBUG_MODE:-off}
COMPOSER_HOME: /var/www/.composer
volumes:
- ./:/var/www/html
# Optional override (default shown): COMPOSER_CACHE_DIR=${HOME}/.composer
- ${COMPOSER_CACHE_DIR:-${HOME}/.composer}:/var/www/.composer/
- ./.profile:/var/www/html/.profile
ports:
- "${DOCS_PORT:-8000}:8000"
command: ["bash", "-lc", "composer run docs:watch"]