-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
101 lines (88 loc) · 2.64 KB
/
docker-compose.yml
File metadata and controls
101 lines (88 loc) · 2.64 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
# 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://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}
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.2.0
<<: [*default-volumes, *default-user]
environment:
<<: *default-environment
depends_on:
- cli
nginx:
image: uselagoon/nginx-drupal:26.2.0
<<: [*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.6-drupal:26.2.0
environment:
<<: *default-environment
ports:
- "3306"
chrome:
image: selenium/standalone-chromium:145.0
ports:
- "7900:7900" # Access Chrome using noVNC at http://behat-steps.docker.amazee.io:7900/?autoconnect=1&password=secret
expose:
- "8888"
shm_size: '1gb'
<<: *default-volumes
environment:
<<: *default-environment
depends_on:
- cli
# Helper container to wait for services to become available.
wait_dependencies:
image: drevops/docker-wait-for-dependencies:26.1.0
depends_on:
- cli
- mariadb
command: mariadb:3306
networks: ### Use external networks locally. Automatically removed in CI.
amazeeio-network: ### Automatically removed in CI.
external: true ### Automatically removed in CI.
volumes:
app: {}