-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
executable file
·63 lines (61 loc) · 1.19 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: '3'
services:
php:
build:
context: .
dockerfile: php.Dockerfile
args:
- PHP_VERSION=${PHP_VERSION:-7.2}
volumes:
- ./web:/var/www
depends_on:
- db
- mail
web:
build:
context: .
dockerfile: web.Dockerfile
volumes:
- ./web:/var/www
- ./files/web/sites:/etc/nginx/sites-available
ports:
- 80:80
depends_on:
- php
db:
image: yobasystems/alpine-mariadb
command: '--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci'
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: db
MYSQL_USER: db
MYSQL_PASSWORD: db
volumes:
- db:/var/lib/mysql
- ./files/db/dumps:/docker-entrypoint-initdb.d
memcached:
image: memcached:1.5-alpine
command: ["memcached", "-m", "128"]
mail:
image: mailhog/mailhog
ports:
- 8025:8025
adminer:
image: adminer
ports:
- 8080:8080
depends_on:
- db
drush:
image: drush/drush:8-alpine
volumes:
- ./web:/app
node:
build:
context: .
dockerfile: node.Dockerfile
volumes:
- ./web:/app
volumes:
db:
driver: local