-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 832 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 832 Bytes
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
services:
mariadb:
container_name: d9d-db
image: mariadb:latest
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
ports:
- 7306:3306
volumes:
- mysqldata:/var/lib/mysql/data
php:
container_name: d9d-web
build: ./.config/php-fpm
links:
- mariadb:mysql
volumes:
- .:/var/www
nginx:
container_name: d9d-nginx
image: nginx:latest
links:
- php
ports:
- '7080:80'
volumes:
- ./.config/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- .:/var/www
environment:
NGINX_STATIC_CONTENT_OPEN_FILE_CACHE: "off"
NGINX_ERROR_LOG_LEVEL: debug
NGINX_BACKEND_HOST: php
NGINX_SERVER_ROOT: /var/www/web
volumes:
mysqldata: {}