-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
93 lines (77 loc) · 3.18 KB
/
docker-compose.yml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
services:
web:
# Restart if aborted or start after reboot
#restart: always
#build: php-dev
image: cyb10101/php-dev:apache-8.3
volumes:
- .:/app
# Note: The docker socket is optional if no node container is needed
- /var/run/docker.sock:/var/run/docker.sock:ro
- ~/.ssh:/home/application/.ssh:ro
# Note: /home/application/.ssh will be copied to /root/.ssh if is empty or not exists
- ~/.composer/cache:/home/application/.composer/cache
- ~/.gitconfig:/home/application/.gitconfig:ro
environment:
# domain.localhost and *.domain.localhost
- VIRTUAL_HOST=~^(.+\.)?domain\.localhost$$
# domain.localhost, www.domain.localhost
#- VIRTUAL_HOST=domain.localhost,www.domain.localhost
#- VIRTUAL_HOST=~^(www\.)?domain\.localhost$$
# subdomain.domain.localhost
#- VIRTUAL_HOST=subdomain.domain.localhost
#- VIRTUAL_PROTO=https
#- VIRTUAL_PORT=443
- WEB_DOCUMENT_ROOT=/app/public
- php.error_reporting=32767
- php.display_errors=1
- php.session.gc_maxlifetime=86400
- PHP_DATE_TIMEZONE=Europe/Berlin
# PHP_DEBUGGER: xdebug, blackfire or none
- PHP_DEBUGGER=${PHP_DEBUGGER:-none}
#- php.xdebug.cli_color=${XDEBUG_CLI_COLOR:-1}
#- php.xdebug.max_nesting_level=${XDEBUG_MAX_NESTING_LEVEL:-400}
# xDebug old:
#- php.xdebug.remote_enable=${XDEBUG_REMOTE_ENABLE:-On}
#- XDEBUG_REMOTE_CONNECT_BACK=${XDEBUG_REMOTE_CONNECT_BACK:-On}
# xDebug new:
#- php.xdebug.mode=${XDEBUG_MODE:-debug}
#- php.xdebug.discover_client_host=${XDEBUG_DISCOVER_CLIENT_HOST:-true}
#- php.xdebug.output_dir=${XDEBUG_OUTPUT_DIR:-/tmp}
#- XDEBUG_REMOTE_AUTOSTART=${XDEBUG_REMOTE_AUTOSTART:-On}
- XDEBUG_REMOTE_HOST=${XDEBUG_REMOTE_HOST:-}
- XDEBUG_REMOTE_PORT=${XDEBUG_REMOTE_PORT:-9000}
- php.xdebug.idekey=${XDEBUG_IDEKEY:-PHPSTORM}
- php.xdebug.remote_log=${XDEBUG_REMOTE_LOG:-/tmp/xdebug.log}
- BLACKFIRE_SERVER_ID=${BLACKFIRE_SERVER_ID:-}
- BLACKFIRE_SERVER_TOKEN=${BLACKFIRE_SERVER_TOKEN:-}
# SSL: Use default cert from global-nginx-proxy
- CERT_NAME=default
# SSL: Do not a redirect in global-nginx-proxy, if you use another port than 443
- HTTPS_METHOD=noredirect
# HTTP Strict Transport Security (Disable only for development)
- HSTS=off
# Project environment variables (enable what you need)
- APP_ENV=${APP_ENV:-dev}
- TYPO3_CONTEXT=${TYPO3_CONTEXT:-Development/Docker}
- FLOW_CONTEXT=${FLOW_CONTEXT:-Development/Docker}
- WP_ENVIRONMENT_TYPE=${WP_ENVIRONMENT_TYPE:-development}
# Set user and group id
- APPLICATION_UID=${APPLICATION_UID:-1000}
- APPLICATION_GID=${APPLICATION_GID:-1000}
working_dir: /app
node:
image: node:lts
volumes:
- ./:/app
working_dir: /app
environment:
# Set user and group id
- APPLICATION_UID=${APPLICATION_UID:-1000}
- APPLICATION_GID=${APPLICATION_GID:-1000}
stop_signal: SIGKILL
entrypoint: bash -c 'groupmod -g $$APPLICATION_GID node; usermod -u $$APPLICATION_UID node; tail -f /dev/null'
networks:
default:
external: true
name: global