You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
810 B
Django/Jinja
40 lines
810 B
Django/Jinja
version: '3.6'
|
|
|
|
services:
|
|
|
|
pep:
|
|
image: nginx:stable-alpine
|
|
networks:
|
|
- conductor-network
|
|
ports:
|
|
- "{{ pep_port }}:80"
|
|
{% if pep is defined and pep == True %}
|
|
volumes:
|
|
- "./pep.js:/etc/nginx/pep.js"
|
|
- "./config.js:/etc/nginx/config.js"
|
|
{% endif %}
|
|
deploy:
|
|
replicas: 1
|
|
{% if infrastructure != 'local' %}
|
|
placement:
|
|
constraints: [node.role != worker]
|
|
{% endif %}
|
|
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
|
|
|
|
networks:
|
|
conductor-network:
|
|
|
|
configs:
|
|
nginxconf:
|
|
file: ./nginx.default.conf
|
|
nginxbaseconf:
|
|
file: ./nginx.conf
|