-
Notifications
You must be signed in to change notification settings - Fork 54
/
docker-compose.yml
91 lines (84 loc) · 2.49 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
# See: https://docs.docker.com/compose/compose-file/
# See: https://github.com/compose-spec/compose-spec/blob/master/spec.md
services:
web:
image: goalgorilla/open_social_docker:drupal10-php8.1-v2
volumes:
- ./:/var/www:delegated
depends_on:
- db
- mailcatcher
- redis
- solr
environment:
DRUPAL_SETTINGS: development
VIRTUAL_HOST: "${PROJECT_BASE_URL}"
VIRTUAL_PORT: 80
ports:
- "80"
container_name: "${PROJECT_NAME}_web"
db:
image: mariadb:10.7
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: social
volumes:
- db_data:/var/lib/mysql
container_name: "${PROJECT_NAME}_db"
command: mysqld --max_allowed_packet=16M
ports:
- "3306"
mailcatcher:
image: schickling/mailcatcher
environment:
VIRTUAL_HOST: "mailcatcher.${PROJECT_BASE_URL}"
VIRTUAL_PORT: 1080
ports:
- "1080"
container_name: "${PROJECT_NAME}_mailcatcher"
chrome:
image: zenika/alpine-chrome:102
container_name: "${PROJECT_NAME}_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: 0
VIRTUAL_HOST: "solr.${PROJECT_BASE_URL}"
VIRTUAL_PORT: 8983
ports:
- "8983"
entrypoint:
- solr-precreate
- drupal
- /solr-conf
container_name: "${PROJECT_NAME}_solr"
redis:
image: redis:latest
container_name: "${PROJECT_NAME}_redis"
ports:
- "6379"
volumes:
db_data:
os_solr_data:
networks:
# Default will connect all containers to the specified network.
default:
# Network name.
name: nginx
# Connects to an existing network.
external: true