forked from CivicActions/bowline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (61 loc) · 1.24 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
version: "2"
services:
# Storage
filestore:
image: civicactions/sshd
environment:
- HOST_USER=${HOST_UID}:${HOST_GID}
volumes:
- /var/www
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"
# Services
php:
image: davenuman/bowline-centos
command: php-fpm
environment:
- COMPOSER_HOME=/.composer
- HOST_USER=${HOST_UID}:${HOST_GID}
- HOST_OS=${HOST_OS}
expose:
- "9000"
volumes_from:
- filestore
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:
- filestore
hostname: drupal
# File synchronizing
sync:
image: civicactions/bg-sync
volumes:
- .:/source
volumes_from:
- filestore
environment:
- SYNC_DESTINATION=/var/www
- SYNC_WAIT=20
- SYNC_VERBOSE=1