forked from CivicActions/bowline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (46 loc) · 961 Bytes
/
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
# Storage
version: "2"
services:
db:
image: mariadb:10.1
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=dbuser
- MYSQL_PASSWORD=dbpass
- MYSQL_DATABASE=drupal
- MYSQL_HOME=/etc
volumes:
- ./.docker/etc/my.cnf:/etc/my.cnf
hostname: dbhost
expose:
- "3306"
php:
image: davenuman/bowline-centos
command: php-fpm
environment:
- COMPOSER_HOME=/.composer
- HOST_USER=${HOST_UID}:${HOST_GID}
expose:
- "9000"
volumes:
- bowline_filesync:/var/www:nocopy
links:
- db:dbhost
hostname: php_host
web:
image: davenuman/bowline-centos
command: httpd -D FOREGROUND -e debug
environment:
- HOST_USER=${HOST_UID}:${HOST_GID}
expose:
- "80"
links:
- db:dbhost
- php:php_host
volumes_from:
- php
hostname: drupal
volumes:
bowline_filesync:
external:
name: "${SLUG}_filesync"