-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (43 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
45 lines (43 loc) · 1.06 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
services:
drupal:
image: drupal:10-apache
container_name: drupal-todo
ports:
- "8080:80"
environment:
DRUPAL_DB_HOST: db
DRUPAL_DB_NAME: drupal
DRUPAL_DB_USER: drupal
DRUPAL_DB_PASSWORD: drupal
volumes:
- drupal-modules:/var/www/html/modules
- drupal-profiles:/var/www/html/profiles
- drupal-themes:/var/www/html/themes
- drupal-sites:/var/www/html/sites
- ./custom_modules:/var/www/html/modules/custom
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: mariadb:10
container_name: drupal-db
environment:
MARIADB_DATABASE: drupal
MARIADB_USER: drupal
MARIADB_PASSWORD: drupal
MARIADB_ROOT_PASSWORD: rootpw
volumes:
- drupal-db:/var/lib/mysql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 5s
timeout: 5s
retries: 20
restart: unless-stopped
volumes:
drupal-modules:
drupal-profiles:
drupal-themes:
drupal-sites:
drupal-db: