-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
60 lines (56 loc) · 1.47 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
# 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: manmath/dockerci:latest
volumes_from:
- data
volumes:
- ./config/web/ip_address.txt:/ip_address.txt:ro
- ./scripts/entrypoint/app.sh:/entrypoint.sh:ro
expose:
- "9000"
links:
- db
- mail
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: dockerci dockerci_test
web:
image: nginx:1.7
ports:
- "80:80"
volumes:
- ./config/web/nginx.conf:/etc/nginx/nginx.conf:ro
- ./config/web/.nginx_default_merged.conf:/etc/nginx/default/vhost.conf:ro
- ./config/web/.nginx_default_test_merged.conf:/etc/nginx/default/vhost_test.conf:ro
- ./config/web/nginx_vhost_default.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"