-
Notifications
You must be signed in to change notification settings - Fork 54
/
docker-compose-ci.yml
90 lines (82 loc) · 2.38 KB
/
docker-compose-ci.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
# See: https://docs.docker.com/compose/compose-file/
# See: https://github.com/compose-spec/compose-spec/blob/master/spec.md
version: "2"
services:
web_scripts:
image: goalgorilla/open_social_docker:ci-drupal10-php8.1-v2
volumes:
- ./:/var/www:delegated
depends_on:
- db
environment:
- DRUPAL_SETTINGS=production
container_name: social_ci_web_scripts
web:
image: goalgorilla/open_social_docker:ci-drupal10-php8.1-v2
volumes:
- ./:/var/www:delegated
depends_on:
- db
- mailcatcher
- redis
- solr
environment:
- DRUPAL_SETTINGS=production
ports:
- "80"
container_name: social_ci_web
db:
image: mariadb:10.7
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=social
volumes:
- db_data:/var/lib/mysql
ports:
- "3306"
container_name: social_ci_db
command: mysqld --max_allowed_packet=16M
mailcatcher:
image: schickling/mailcatcher
environment:
- VIRTUAL_HOST=mailcatcher.social.dev
- VIRTUAL_PORT=1080
ports:
- "1080"
container_name: social_mailcatcher
chrome:
image: zenika/alpine-chrome:89
container_name: social_chrome
command:
- "--headless" # Run in headless mode, i.e., without a UI or display server dependencies.
- "--disable-gpu" # Disables GPU hardware acceleration. If software renderer is not in place, then the GPU process won't launch.
- "--no-sandbox" # Disables the sandbox for all process types that are normally sandboxed. Meant to be used as a browser-level switch for testing purposes only.
- "--remote-debugging-address=0.0.0.0" # Enables remote debug over HTTP on the specified port.
- "--remote-debugging-port=9222" # Enables remote debug over HTTP on the specified port.
volumes:
- ./:/var/www:delegated
ports:
- '9222:9222'
solr:
image: solr:8.11
hostname: solr
volumes:
- os_solr_data:/opt/solr/server/solr/mycores
- ./docker/solr/8.x/drupal/:/solr-conf/conf:cached
environment:
- SOLR_SOLR_MEM_SIZE=512m
- PARTIAL_SEARCH_ENABLED=false
- VIRTUAL_HOST=solr.social.local
- VIRTUAL_PORT=8983
ports:
- "8983"
entrypoint:
- solr-precreate
- drupal
- /solr-conf
container_name: social_ci_solr
redis:
image: redis:latest
volumes:
db_data:
os_solr_data: