-
Notifications
You must be signed in to change notification settings - Fork 14
/
drupalDocker.md
56 lines (48 loc) · 1.46 KB
/
drupalDocker.md
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
# Drupal Docker
Drupal is an open source content management platform powering millions of websites and applications.
## Docker
```sh
docker run --name drupal -p 8080:80 -d drupal
```
[http://localhost:8080/](http://localhost:8080/)
### Volumes
```sh
docker run --name drupal -d \
-v /path/on/host/modules:/var/www/html/modules \
-v /path/on/host/profiles:/var/www/html/profiles \
-v /path/on/host/sites:/var/www/html/sites \
-v /path/on/host/themes:/var/www/html/themes \
drupal
```
## Docker Compose
```
version: '3.1'
services:
drupal:
image: drupal:8-apache
ports:
- 8080:80
volumes:
- /var/www/html/modules
- /var/www/html/profiles
- /var/www/html/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
- /var/www/html/sites
restart: always
postgres:
image: postgres:10
environment:
POSTGRES_PASSWORD: example
restart: always
```
## Runtime Environment
- [PHP](https://www.php.net/downloads)
## Screenshots
![](https://www.drupal.org/files/docs/user_guide/en/images/config-overview-pencils.png)
![](https://www.drupal.org/files/docs/user_guide/en/images/config-basic-TimeZone.png)
## References
- [Drupal](https://www.drupal.org/)
- [Drupal Docker](https://hub.docker.com/_/drupal)
- [Drupal GitHub](https://github.com/drupal/drupal)