-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
compose.yaml
34 lines (31 loc) · 848 Bytes
/
compose.yaml
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
# Drupal with MariaDB
#
# Access via "https://localhost"
#
# During initial Drupal setup, use the following database configuration:
#
# Database type: MySQL, MariaDB, Percona Server, or equivalent
# Database name: drupal
# Database username: root
# Database password: example
# ADVANCED OPTIONS; Database host: db
services:
drupal:
build: .
ports:
- 80:80
- 443:443
volumes:
- /app/public/modules
- /app/public/profiles
- /app/public/themes
# this takes advantage of the feature in Docker that a new anonymous
# volume (which is what we're creating here) will be initialized with the
# existing content of the image at the same location
- /app/public/sites
restart: always
db:
image: mariadb
environment:
MARIADB_ROOT_PASSWORD: example
restart: always