akamai-nginx
Version:
generate nginx config from akamai property
50 lines (46 loc) • 1.23 kB
YAML
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