-
-
Notifications
You must be signed in to change notification settings - Fork 169
/
php-fpm.base.yml
49 lines (44 loc) · 1.5 KB
/
php-fpm.base.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
version: "3.5"
x-volumes: &volumes
- ${WARDEN_SSL_DIR}/rootca/certs:/etc/ssl/warden-rootca-cert:ro
- ${WARDEN_COMPOSER_DIR}:/home/www-data/.composer:cached
- .${WARDEN_WEB_ROOT:-}/:/var/www/html:cached
- bashhistory:/var/bash_history
x-extra_hosts: &extra_hosts
- ${TRAEFIK_DOMAIN}:${TRAEFIK_ADDRESS:-0.0.0.0}
- ${TRAEFIK_SUBDOMAIN:-app}.${TRAEFIK_DOMAIN}:${TRAEFIK_ADDRESS:-0.0.0.0}
services:
nginx:
depends_on:
- php-fpm
php-fpm:
hostname: "${WARDEN_ENV_NAME}-php-fpm"
image: docker.io/wardenenv/php-fpm:${PHP_VERSION:-7.4}${WARDEN_SVC_PHP_VARIANT:-}
environment:
- TRAEFIK_DOMAIN
- TRAEFIK_SUBDOMAIN
- SSH_AUTH_SOCK=/tmp/ssh-auth.sock
- NODE_VERSION=${NODE_VERSION:-10}
- COMPOSER_VERSION=${COMPOSER_VERSION:-1}
- COMPOSER_MEMORY_LIMIT=-1
- HISTFILE=/var/bash_history/.bash_history
volumes: *volumes
extra_hosts: *extra_hosts
php-debug:
hostname: "${WARDEN_ENV_NAME}-php-debug"
image: docker.io/wardenenv/php-fpm:${PHP_VERSION:-7.4}${WARDEN_SVC_PHP_VARIANT:-}-${XDEBUG_VERSION:-debug}
environment:
- TRAEFIK_DOMAIN
- TRAEFIK_SUBDOMAIN
- SSH_AUTH_SOCK=/tmp/ssh-auth.sock
- NODE_VERSION=${NODE_VERSION:-10}
- COMPOSER_VERSION=${COMPOSER_VERSION:-1}
- COMPOSER_MEMORY_LIMIT=-1
- PHP_IDE_CONFIG=serverName=${WARDEN_ENV_NAME}-docker
- HISTFILE=/var/bash_history/.bash_history
volumes: *volumes
extra_hosts: *extra_hosts
depends_on:
- php-fpm
volumes:
bashhistory: