-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
75 lines (72 loc) · 1.86 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
---
version: "2"
volumes:
mysqlData:
driver: local
services:
webserver:
image: "nginx:1.11"
links: ["php"]
volumes:
- "./Build/docker/nginx.conf:/etc/nginx/nginx.conf"
- "./:/var/www/"
- "./logs/webserver/:/var/log/nginx/"
env_file:
- "./.env"
environment:
VIRTUAL_HOST: "${HOSTNAME}"
VIRTUAL_PORT: 80
php:
# https://github.com/SimplyAdmire/docker
image: "simplyadmire/php"
command: "php-fpm7.0 -F"
volumes:
- "./Build/docker/php-fpm-pool.conf:/etc/php/7.0/fpm/pool.d/www.conf"
- "./Build/docker/ssmtp.conf:/etc/ssmtp/ssmtp.conf"
- "./Build/docker/mailcatcher.ini:/etc/php/7.0/cli/conf.d/mailcatcher.ini"
- "./:/var/www/"
working_dir: "/var/www/"
env_file:
- "./.env"
links:
- "db"
- "elastic"
mailcatcher:
image: "schickling/mailcatcher"
environment:
VIRTUAL_HOST: "mailcatcher.${HOSTNAME}"
VIRTUAL_PORT: 1080
db:
image: "mariadb"
env_file:
- "./.env"
volumes:
- "mysqlData:/var/lib/mysql"
- "./../logs/db/:/var/log/mysql/"
- "./Build/docker/mariadb.cnf:/etc/mysql/conf.d/mariadb.cnf"
npm:
image: "simplyadmire/npm:latest"
working_dir: "/app/src/SimplyAdmire.MyPackage/Build/"
entrypoint: "yarn"
volumes:
- "./Build/docker/run-npm.sh:/root/run-npm.sh"
- "./:/app/"
- "~/.gitconfig:/root/.gitconfig"
composer:
image: "composer/composer:latest"
working_dir: "/app/"
volumes:
- "./:/app/"
- "~/.composer/:/composer/"
env_file:
- "./.env"
elastic:
image: "elasticsearch:1.7"
command: elasticsearch -Des.network.host=0.0.0.0
environment:
VIRTUAL_HOST: "elastic.${HOSTNAME}"
VIRTUAL_PORT: 9200
volumes:
- "./Build/docker/elasticsearch.yml:/etc/elasticsearch/elasticsearch.yml"
redis:
image: "redis"