-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
74 lines (69 loc) · 2.19 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
services:
nginx:
image: skpr/nginx-drupal:dev-v2-latest
ports:
- "${WEB_PORT:-8080}:8080"
- "${MYSQL_PORT:-3306}:3306"
- "${SELENIUM_PORT:-4444}:4444"
- "${VNC_PORT:-5900}:5900"
- "${SMTP_PORT:-1025}:1025"
- "${MAIL_PORT:-8025}:8025"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./:/data
- ./.docker/nginx/drupal.conf:/etc/nginx/conf.d/location/00-drupal.conf
php-fpm:
build:
args:
BASE_IMAGE: skpr/php-fpm:${PHP_VERSION:-8.3}-dev-v2-latest
USERNAME: ${USERNAME:-skpr}
UID: ${UID:-1000}
GID: ${GID:-1000}
context: ./.docker/php
network_mode: service:nginx
volumes:
- ./:/data
- ./.docker/php/custom.ini:/etc/php/conf.d/99-custom.ini
environment:
- PHP_IDE_CONFIG=serverName=localhost
php-cli:
build:
args:
BASE_IMAGE: skpr/php-cli:${PHP_VERSION:-8.3}-dev-v2-latest
USERNAME: ${USERNAME:-skpr}
UID: ${UID:-1000}
GID: ${GID:-1000}
context: ./.docker/php
command: /bin/bash -c "sleep infinity"
network_mode: service:nginx
environment:
- DRUSH_OPTIONS_URI=${BASE_URI:-http://127.0.0.1:8080}
- PHP_IDE_CONFIG=serverName=localhost
- SIMPLETEST_BASE_URL=${SIMPLETEST_BASE_URL:-http://127.0.0.1:8080}
- SIMPLETEST_DB=${SIMPLETEST_DB:-mysql://local:[email protected]/local}
- BROWSERTEST_OUTPUT_DIRECTORY=${BROWSERTEST_OUTPUT_DIRECTORY:-/tmp}
- BROWSERTEST_OUTPUT_BASE_URL=${BASE_URI:-http://127.0.0.1:8080}
- BROWSERTEST_OUTPUT_VERBOSE=${BROWSERTEST_OUTPUT_VERBOSE:-true}
- MINK_DRIVER_ARGS_WEBDRIVER
volumes:
- ./:/data
- ./.docker/php/custom.ini:/etc/php/conf.d/99-custom.ini
mysql:
image: mysql:latest
network_mode: service:nginx
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
MYSQL_USER: local
MYSQL_PASSWORD: local
MYSQL_DATABASE: local
healthcheck:
test: [ "CMD", "mysql", "-e", "USE local;" ]
interval: 1s
retries: 30
selenium:
image: ${SELENIUM_IMAGE:-selenium/standalone-chrome:111.0}
network_mode: service:nginx
mail:
image: axllent/mailpit
network_mode: service:nginx