ansible-role-inception/templates/pep-swarm.yml.j2

41 lines
884 B
Plaintext
Raw Normal View History

2021-11-02 19:47:36 +01:00
version: '3.6'
services:
pep:
image: nginx:stable-alpine
networks:
2021-11-03 17:49:30 +01:00
- {{ inception_project_docker_network }}
2021-11-02 19:47:36 +01:00
- haproxy-public
deploy:
replicas: 1
placement:
constraints: [node.role == worker]
endpoint_mode: dnsrr
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
networks:
{{ inception_project_docker_network }}:
haproxy-public:
external: true
configs:
nginxconf:
file: ./nginx.default.conf
nginxbaseconf:
file: ./nginx.conf
pep:
file: ./pep.js
pepconfig:
file: ./config.js