-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (74 loc) · 1.75 KB
/
docker-compose.yml
File metadata and controls
81 lines (74 loc) · 1.75 KB
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
79
80
81
# 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: visay/dockerwordpress:1.1.1
hostname: dockerwordpress
domainname: dev
volumes_from:
- data
volumes:
- ./config/web/ip_address.txt:/ip_address.txt:ro
- ./scripts/entrypoint/app.sh:/entrypoint.sh:ro
- ./scripts/entrypoint/wp-cli.sh:/usr/bin/wp:ro
expose:
- "9000"
links:
- db
- mail
- redis
- elasticsearch
- couchdb
environment:
- HOST_USER_ID
# 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: dockerwordpress dockerwordpress_test
web:
image: nginx:1.7
ports:
- "80:80"
volumes:
- ./config/web/nginx.conf:/etc/nginx/nginx.conf:ro
- ./config/web/nginx_vhost_merged.conf:/etc/nginx/conf.d/default.conf:ro
- ./config/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:
- ./config/elasticsearch/config.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
couchdb:
image: klaemo/couchdb:1.6
ports:
- "5984:5984"