forked from Sebobo/Shel.DockerFlow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
78 lines (71 loc) · 1.7 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
78
# App container which provides the php environment
app:
# For development of the image comment out the 'image' line and replace with the next line
#build: .
image: sebobo/shel.dockerflow:3.0.6
hostname: dockerflow
domainname: dev
volumes_from:
- data
volumes:
- ./Configuration/Web/ip_address.txt:/ip_address.txt:ro
- ./Scripts/EntryPoint/app.sh:/entrypoint.sh:ro
expose:
- "9000"
links:
- db
- mail
- redis
- elasticsearch
- couchdb
# Passive data container which only provides a shared filesystem for the other containers
data:
image: mariadb:10.0
command: echo "Data container has started"
volumes:
- ../../../..:/var/www
- /var/lib/mysql
db:
image: mariadb:10.0
volumes_from:
- data
volumes:
- ./Scripts/EntryPoint/db.sh:/entrypoint.sh:ro
ports:
- "3307:3306"
entrypoint: /entrypoint.sh
command: mysqld --user=root
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: dockerflow dockerflow_test
web:
image: nginx:1.7
ports:
- "8080:8080"
volumes:
- ./Configuration/Web/nginx.conf:/etc/nginx/nginx.conf:ro
- ./Configuration/Web/nginx_vhost_merged.conf:/etc/nginx/conf.d/default.conf:ro
- ./Configuration/Web/ip_address.txt:/ip_address.txt:rw
- ./Scripts/EntryPoint/web.sh:/entrypoint.sh:ro
volumes_from:
- data
links:
- app
mail:
image: mailhog/mailhog:latest
ports:
- "8025:8025"
redis:
image: redis:3.0
ports:
- "6379:6379"
elasticsearch:
image: elasticsearch:1.4
ports:
- "9200:9200"
volumes:
- ./Configuration/ElasticSearch/config.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
couchdb:
image: klaemo/couchdb:1.6
ports:
- "5984:5984"