36 lines
725 B
YAML
36 lines
725 B
YAML
|
version: '3.6'
|
||
|
|
||
|
services:
|
||
|
cdn:
|
||
|
image: hub.dev.d4science.org/cdn/cdn:prod
|
||
|
networks:
|
||
|
- haproxy-public
|
||
|
healthcheck:
|
||
|
test: curl http://localhost/health
|
||
|
interval: 10s
|
||
|
timeout: 5s
|
||
|
retries: 12
|
||
|
|
||
|
deploy:
|
||
|
mode: replicated
|
||
|
replicas: 1
|
||
|
endpoint_mode: dnsrr
|
||
|
restart_policy:
|
||
|
condition: any
|
||
|
delay: 5s
|
||
|
window: 120s
|
||
|
placement:
|
||
|
constraints: [node.role == worker]
|
||
|
|
||
|
environment:
|
||
|
GIT_BRANCH: prod
|
||
|
GIT_SERVER: https://code-repo.d4science.org/gCubeSystem
|
||
|
GIT_REPOSITORY: web-components
|
||
|
Authorization: ${cdn_credentials}
|
||
|
logging:
|
||
|
driver: "journald"
|
||
|
|
||
|
networks:
|
||
|
haproxy-public:
|
||
|
external: true
|