-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
150 lines (150 loc) · 4.08 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
version: '2'
services:
autodiscovery:
build: ./autodiscovery/
mem_limit: 128m
expose:
- 53
- 8300
- 8301
- 8302
- 8400
- 8500
ports:
- 8500:8500
dns:
- 127.0.0.1
avs_nginx:
build: ./avs/nginx/
volumes:
- ../source/avs:/var/www
- ./avs/nginx/log:/var/log/nginx
links:
- autodiscovery
- avs_php
environment:
- BACKEND=avs-php
- CONSUL=autodiscovery
ports:
- "80:80"
- "443:443"
avs_php:
build: ./avs/php/
volumes:
- ../source/avs:/var/www
links:
- autodiscovery
- avs_mysql
expose:
- 9000
ports:
- "9000:9000"
environment:
- BACKEND=avs-nginx
- CONSUL=autodiscovery
avs_mysql:
build: ./avs/mysql/
environment:
- CONSUL=autodiscovery
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=avs
- MYSQL_USER=user
- MYSQL_PASSWORD=secret
ports:
- "3306:3306"
volumes:
- ./avs/mysql/data:/var/lib/mysql
- ./avs/mysql/conf:/etc/mysql/conf.d
avs_sym_nginx:
build: ./avs_sym/nginx/
volumes:
- ../source/avs_sym:/var/www
links:
- autodiscovery
- avs_sym_php
environment:
- BACKEND=avs-sym-php
- CONSUL=autodiscovery
ports:
- "8082:80"
- "8543:443"
avs_sym_php:
build: ./avs_sym/php/
volumes:
- ../source/avs_sym:/var/www
links:
- autodiscovery
- avs_mysql
expose:
- 9000
environment:
- BACKEND=avs-sym-nginx
- CONSUL=autodiscovery
avs_phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- avs_mysql:db
ports:
- 8000:80
environment:
MYSQL_ROOT_PASSWORD: secret
depends_on:
- avs_mysql
shipment_docs_nginx:
build: ./shipment_docs/nginx/
volumes_from:
- source_shipment_docs
links:
- autodiscovery
- shipment_docs_php
environment:
- BACKEND=shipment-docs-php
- CONSUL=autodiscovery
ports:
- "8081:80"
- "8443:443"
shipment_docs_php:
build: ./shipment_docs/php/
volumes_from:
- source_shipment_docs
links:
- autodiscovery
- shipment_docs_mysql
expose:
- 9000
environment:
- BACKEND=shipment-docs-nginx
- CONSUL=autodiscovery
shipment_docs_mysql:
build: ./shipment_docs/mysql/
environment:
- CONSUL=autodiscovery
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=shipment_docs
- MYSQL_USER=user
- MYSQL_PASSWORD=secret
ports:
- 6666:3306
volumes:
- ./shipment_docs/mysql/data:/var/lib/mysql
- ./shipment_docs/mysql/conf:/etc/mysql/conf.d
source_shipment_docs:
image: dracoblue/lsyncd
environment:
- SOURCES=/mnt/vendor
- DESTINATIONS=/var/www/vendor
- EXCLUDES=.svn:.git:.docker
volumes:
- ../source/shipment_docs:/var/www
- ../source/shipment_docs/vendor:/mnt/vendor
- /var/www/vendor
source_avs:
image: dracoblue/lsyncd
environment:
- SOURCES=/mnt/vendor
- DESTINATIONS=/var/www/vendor
- EXCLUDES=.svn:.git:.docker
volumes:
- ../source/avs:/var/www
- ../source/avs/vendor:/mnt/vendor
- /var/www/vendor