-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 1.2 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
version: '2'
services:
edge:
restart: always
image: openresty/openresty:trusty
dns:
- 8.8.8.8
links:
- akamai
ports:
- "80:80"
- "443:443"
privileged: true
volumes:
- ./lua/:/usr/local/openresty/nginx/conf/lua
- ./ssl/:/usr/local/openresty/nginx/conf/ssl
- ./cache/:/usr/local/openresty/nginx/cache
- ./nginx-conf/nginx-edge.conf:/usr/local/openresty/nginx/conf/nginx.conf
akamai:
restart: always
image: openresty/openresty:trusty
dns:
- 8.8.8.8
links:
- origin
ports:
- "8083:80"
- "9443:443"
privileged: true
volumes:
- ./lua/:/usr/local/openresty/nginx/conf/lua
- ./ssl/:/usr/local/openresty/nginx/conf/ssl
- ./nginx-conf/nginx-akamai.conf:/usr/local/openresty/nginx/conf/nginx.conf
origin:
restart: always
image: openresty/openresty:trusty
dns:
- 8.8.8.8
ports:
- "8082:80"
- "8443:443"
privileged: true
volumes:
- ./lua/:/usr/local/openresty/nginx/conf/lua
- ./ssl/:/usr/local/openresty/nginx/conf/ssl
- ./nginx-conf/nginx-origin.conf:/usr/local/openresty/nginx/conf/nginx.conf