Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
110 lines (96 loc) 路 3.1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
110 lines (96 loc) 路 3.1 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# For reference, @see https://github.com/drevops/scaffold/blob/main/docker-compose.yml
x-project:
&project ${PROJECT:-behat-steps}
x-url:
&url ${LOCALDEV_URL:-http://${COMPOSE_PROJECT_NAME:-behat-steps}.docker.amazee.io}
x-volumes:
&default-volumes
volumes:
- .:/app:${VOLUME_FLAGS:-delegated} ### Local overrides to mount host filesystem. Automatically removed in CI.
##- app:/app # Override for environment without host mounts. Automatically uncommented in CI.
x-user:
&default-user
user: '1000'
x-environment:
&default-environment
PROJECT: *project
WEBROOT: build/web
LOCALDEV_URL: *url
LAGOON_LOCALDEV_URL: *url
CI: ${CI:-}
XDEBUG_ENABLE: ${XDEBUG_ENABLE:-}
DEPS: ${DEPS:-normal}
DRUPAL_VERSION: ${DRUPAL_VERSION:-11}
BEHAT: ${BEHAT:-3}
PHP_VERSION: ${PHP_VERSION:-8.3}
GITHUB_TOKEN: ${GITHUB_TOKEN:-}
PHP_MEMORY_LIMIT: 2048M
services:
cli:
build:
context: .
dockerfile: .docker/cli.dockerfile
args:
PHP_VERSION: ${PHP_VERSION:-8.3}
<<: *default-volumes
user: root
expose:
- "8888"
environment:
<<: *default-environment
volumes_from: ### Local overrides to mount host SSH keys. Automatically removed in CI.
- container:amazeeio-ssh-agent ### Local overrides to mount host SSH keys. Automatically removed in CI.
php:
image: uselagoon/php-${PHP_VERSION:-8.3}-fpm:26.9.0
<<: [*default-volumes, *default-user]
environment:
<<: *default-environment
depends_on:
- cli
nginx:
image: uselagoon/nginx-drupal:26.9.0@sha256:4f6c21710ffad0fa7ef0509178e00a1b79a8ce013a0f4f9470f4ab04ef8e15c0
<<: [*default-volumes, *default-user]
environment:
<<: *default-environment
depends_on:
- cli
networks:
- amazeeio-network ### This network is supported by Pygmy and used to route all requests to host machine locally. Removed in CI.
- default
mariadb:
image: uselagoon/mariadb-10.11-drupal:26.9.0@sha256:12de8f70404103bd12ef555c43db36add1852258d36203e9c58953db927f41bc
environment:
<<: *default-environment
ports:
- "3306"
chrome:
image: selenium/standalone-chromium:155.0@sha256:c7c17cd79c62819a8329df00e610dbc4073c279da034a6f37135d454eb0d8870
ports:
- "7900" # Find the noVNC URL on host with 'ahoy info'.
expose:
- "8888"
shm_size: '1gb'
<<: *default-volumes
environment:
<<: *default-environment
depends_on:
- cli
chrome_headless:
image: chromedp/headless-shell:158.0.8106.0@sha256:7e9783a01393515a5b1998a92a1ae46959f56ad3e05de8b9c0500f2e24fc3887
shm_size: '1gb'
expose:
- "9222"
depends_on:
- cli
wait_dependencies:
image: drevops/docker-wait-for-dependencies:26.10.0@sha256:0a44e138673116e9cfa3e94dd4df29c97f56c0b8f0fdee58c1dc123dd9b52b08
depends_on:
- cli
- mariadb
- chrome_headless
command: mariadb:3306 chrome_headless:9222
networks: ### Use external networks locally. Automatically removed in CI.
amazeeio-network: ### Automatically removed in CI.
external: true ### Automatically removed in CI.
volumes:
app: {}