forked from drevops/behat-steps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
91 lines (78 loc) · 2.08 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# 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:-}
DRUPAL_VERSION: ${DRUPAL_VERSION:-9}
GITHUB_TOKEN: ${GITHUB_TOKEN:-}
PHP_MEMORY_LIMIT: 2048M
services:
cli:
build:
context: .
dockerfile: .docker/cli.dockerfile
<<: *default-volumes
user: root
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-8.2-fpm:24.5.0
<<: [*default-volumes, *default-user]
environment:
<<: *default-environment
depends_on:
- cli
nginx:
image: uselagoon/nginx-drupal:24.5.0
<<: [*default-volumes, *default-user]
environment:
<<: *default-environment
depends_on:
- cli
networks:
- amazeeio-network
- default
mariadb:
image: uselagoon/mariadb-drupal:24.5.0
environment:
<<: *default-environment
ports:
- "3306"
chrome:
image: selenium/standalone-chrome:111.0
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:24.3.0
depends_on:
- cli
- mariadb
command: mariadb:3306
networks:
amazeeio-network:
external: true
volumes:
app: {}