-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (51 loc) · 1.69 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
version: '3.8'
services:
webserver:
container_name: ${WEBSERVER_NAME}
hostname: ${PROJECT_NAME}
build:
context: ${COMPOSE_CONTEXT}
args:
BASE_IMAGE: "$BASE_IMAGE"
RUN_ADDITIONAL_CMD: "${DOCKER_RUN_ADDITIONAL_CMD:-echo -n ''}"
EXTRA_RUN_CMD_1: "${EXTRA_RUN_CMD_1:-echo -n ''}"
EXTRA_RUN_CMD_2: "${EXTRA_RUN_CMD_2:-echo -n ''}"
EXTRA_RUN_CMD_3: "${EXTRA_RUN_CMD_3:-echo -n ''}"
EXTRA_RUN_CMD_4: "${EXTRA_RUN_CMD_4:-echo -n ''}"
EXTRA_RUN_CMD_5: "${EXTRA_RUN_CMD_5:-echo -n ''}"
EXTRA_RUN_CMD_6: "${EXTRA_RUN_CMD_6:-echo -n ''}"
EXTRA_RUN_CMD_7: "${EXTRA_RUN_CMD_7:-echo -n ''}"
volumes:
- ${PROJECT_BASE}:/var/www/html
- ./php.ini:/usr/local/etc/php/conf.d/custom.ini:ro
- ./000-default.conf:/etc/apache2/sites-available/000-default.conf:ro
- /etc/passwd:/etc/passwd:ro
- /etc/group:/etc/group:ro
- ~/.ssh/known_hosts:/etc/ssh/ssh_known_hosts:ro
- ./../utils/:/utils/:ro
- /tmp/:/share/
env_file:
- ${CONFIG_FILE}
expose:
- "8080"
- "8081"
environment:
- VIRTUAL_HOST=${PROJECT_NAME}.localhost
- DEVTOKEN=dev
- NETWORK_ACCESS=internal
- PHP_IDE_CONFIG=serverName=${PROJECT_NAME}
- APACHE_RUN_USER=#${USER}
- APACHE_RUN_GROUP=#${GROUP}
- CONTAINER_NAME=${WEBSERVER_NAME}
- DOCUMENT_ROOT=${DOCUMENT_ROOT}
- APACHE_LOG_LEVEL=${APACHE_LOG_LEVEL}
- HOME=/tmp
- XDEBUG_MODE=${XDEBUG_MODE}
- XDEBUG_CONFIG="idekey=${PROJECT_NAME}"
- XDEBUG_SESSION="${PROJECT_NAME}"
extra_hosts:
- "gateway:${GATEWAY}"
networks:
default:
name: ${NETWORK_NAME}
external: true