-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (49 loc) · 1.2 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
version: "3.1"
services:
memcached:
image: memcached:alpine
container_name: drupal-memcached
mysql:
image: mysql:8.0
container_name: drupal-mysql
working_dir: /var/www
volumes:
- .:/var/www
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=d8
- MYSQL_USER=root
- MYSQL_PASSWORD=root
ports:
- "3306:3306"
expose:
- "3306"
webserver:
build: phpdocker/web
container_name: drupal-web
working_dir: /var/www
volumes:
- ./www:/var/www
- ./logs:/var/log/nginx
environment:
- docker=1
ports:
- "80:80"
- "443:443"
depends_on: # guess we dont need that - its implied by links
- php-fpm
- mysql
links:
- php-fpm
- mysql
php-fpm:
build: phpdocker/php-fpm
container_name: drupal-php-fpm
expose:
- 9000
volumes:
- ./www:/var/www
- ./phpdocker/php-fpm/php-ini-overrides.ini:/etc/php/7.2/fpm/conf.d/99-overrides.ini
- ./phpdocker/php-fpm/20-xdebug.ini:/etc/php/7.2/fpm/conf.d/20-xdebug.ini
environment:
- docker=1