63 lines
1.2 KiB
YAML
63 lines
1.2 KiB
YAML
version: '3.6'
|
|
|
|
services:
|
|
|
|
pep:
|
|
image: nginx:stable-alpine
|
|
networks:
|
|
- cdn-network
|
|
ports:
|
|
- "80:80"
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 2
|
|
restart_policy:
|
|
condition: on-failure
|
|
delay: 10s
|
|
window: 120s
|
|
configs:
|
|
- source: nginxconf
|
|
target: /etc/nginx/templates/default.conf.template
|
|
- source: nginxbaseconf
|
|
target: /etc/nginx/nginx.conf
|
|
- source: pep
|
|
target: /etc/nginx/pep.js
|
|
- source: pepconfig
|
|
target: /etc/nginx/config.js
|
|
|
|
cdn:
|
|
image: nubisware/d4s-cdn
|
|
networks:
|
|
- cdn-network
|
|
deploy:
|
|
mode: replicated
|
|
replicas: 2
|
|
restart_policy:
|
|
condition: on-failure
|
|
delay: 10s
|
|
window: 200s
|
|
configs:
|
|
- source: authconf
|
|
target: /opt/app/cdn/conf/auth.json
|
|
- source: cdnconf
|
|
target: /opt/app/cdn/conf/d4s-cdn.json
|
|
|
|
networks:
|
|
cdn-network:
|
|
|
|
configs:
|
|
nginxconf:
|
|
file: ./conf/pep/default.conf
|
|
nginxbaseconf:
|
|
file: ./conf/pep/nginx.conf
|
|
pep:
|
|
file: ./conf/pep/pep.js
|
|
pepconfig:
|
|
file: ./conf/pep/config.js
|
|
|
|
cdnconf:
|
|
file: ./conf/cdn/d4s-cdn.json
|
|
authconf:
|
|
file: ./conf/cdn/auth.json
|
|
|