You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
1.7 KiB
82 lines
1.7 KiB
version: '3.6'
|
|
|
|
services:
|
|
|
|
cdn-router-dev:
|
|
image: nginx:stable-alpine
|
|
networks:
|
|
- cdn-local_cdn-network
|
|
ports:
|
|
- "80:80"
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 2
|
|
restart_policy:
|
|
condition: on-failure
|
|
delay: 10s
|
|
window: 120s
|
|
configs:
|
|
- source: cdn-local_router_conf
|
|
target: /etc/nginx/templates/default.conf.template
|
|
|
|
cdn-pep:
|
|
image: nginx:stable-alpine
|
|
networks:
|
|
- cdn-local_cdn-network
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 2
|
|
restart_policy:
|
|
condition: on-failure
|
|
delay: 10s
|
|
window: 120s
|
|
configs:
|
|
- source: cdn-local_cdn_pep_conf
|
|
target: /etc/nginx/templates/default.conf.template
|
|
- source: cdn-local_cdn_pep_baseconf
|
|
target: /etc/nginx/nginx.conf
|
|
- source: cdn-local_cdn_pep
|
|
target: /etc/nginx/pep.js
|
|
- source: cdn-local_cdn_pepconfig
|
|
target: /etc/nginx/config.js
|
|
|
|
|
|
d4s-cdn:
|
|
image: nubisware/d4s-cdn
|
|
networks:
|
|
- cdn-local_cdn-network
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 2
|
|
restart_policy:
|
|
condition: on-failure
|
|
delay: 10s
|
|
window: 200s
|
|
configs:
|
|
- source: cdn-local_cdn_conf
|
|
target: /opt/app/cdn/conf/d4s-cdn.json
|
|
- source: cdn-local_cdn_auth_conf
|
|
target: /opt/app/cdn/conf/auth.json
|
|
|
|
networks:
|
|
cdn-local_cdn-network:
|
|
|
|
configs:
|
|
cdn-local_router_conf:
|
|
external: true
|
|
|
|
cdn-local_cdn_pep_conf:
|
|
external: true
|
|
cdn-local_cdn_pep_baseconf:
|
|
external: true
|
|
cdn-local_cdn_pep:
|
|
external: true
|
|
cdn-local_cdn_pepconfig:
|
|
external: true
|
|
|
|
cdn-local_cdn_conf:
|
|
external: true
|
|
cdn-local_cdn_auth_conf:
|
|
external: true
|
|
|