-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdocker-compose.yml
77 lines (72 loc) · 1.6 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '3.4'
services:
php:
build:
context: .
dockerfile: ./docker-src/cms/Dockerfile
target: php-dev
image: ${IMAGE_MAINTAINER}/${PROJECT}-php
container_name: ${PROJECT}-php
env_file: environment
environment:
- CONNECTBACK=off
- DRUPAL_MYSQL_HOST=${PROJECT}-db
links:
- db
- memcache
depends_on:
- db
- memcache
networks:
- connector
volumes:
- "./composer.json:/var/www/composer.json"
- "./webroot:/var/www-host/webroot"
- "./config:/var/www-host/config"
- "./vendor:/var/www-host/vendor"
- "./tests:/var/www-host/tests"
privileged: true
web:
build:
context: .
dockerfile: ./docker-src/cms/Dockerfile
target: web-dev
image: ${IMAGE_MAINTAINER}/${PROJECT}-web
container_name: ${PROJECT}-web
ports:
- 8080:80
- 8443:443
networks:
- connector
links:
- php
depends_on:
- php
volumes:
- "./webroot:/var/www/webroot-host:ro"
privileged: true
db:
image: mariadb:10
container_name: ${PROJECT}-db
env_file: environment
volumes:
- "./docker-src/db/conf:/etc/my.cnf.d"
- "database:/var/lib/mysql"
networks:
- connector
healthcheck:
test: "mysqladmin ping -uroot -proot -hlocalhost"
interval: 15s
timeout: 5s
retries: 5
memcache:
image: memcached:1.6-alpine
container_name: ${PROJECT}-memcached
environment:
- MEMCACHED_SERVER=${PROJECT}-memcached:11211
networks:
- connector
networks:
connector:
volumes:
database: {}