forked from glaux/drupal8docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (48 loc) · 1.24 KB
/
docker-compose.yml
File metadata and controls
54 lines (48 loc) · 1.24 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
46
47
48
49
50
51
52
53
54
version: '3.3'
services:
project:
build: ./docker/project
ports:
- "8090:80"
volumes:
- ./docker/project/modules:/var/www/html/modules
- ./docker/project/themes:/var/www/html/themes
- ./docker/project/libraries:/var/www/html/libraries
- ./docker/project/profiles:/var/www/html/profiles
- ./docker/project/sites:/var/www/html/sites
# Add anonymous volumes to exclude cache files explicitly
- /var/www/html/sites/default/files/js
- /var/www/html/sites/default/files/css
- /var/www/html/sites/default/files/php
depends_on:
- mysql
- drupal
restart: always
drupal:
image: customdrupal
build: ./docker/drupal
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
volumes:
- ./docker/phpmyadmin/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php
env_file:
- ./docker/project/environment.env
ports:
- "8080:80"
depends_on:
- mysql
restart: always
mysql:
image: mysql
build: ./docker/mysql
env_file:
- ./docker/project/environment.env
hostname: mysql
ports:
- 3306:3306
volumes:
- mysql-data:/var/lib/mysql
restart: always
# Persistent sql storage
volumes:
mysql-data: