|
1 | 1 | services: |
2 | | - autoscaling: |
3 | | - deploy: |
4 | | - replicas: 0 |
5 | | - agent: |
6 | | - volumes: |
7 | | - - /docker/volumes/:/docker/volumes/ |
8 | | - postgres: |
9 | | - labels: |
10 | | - - "pgbackup.enable=true" |
11 | | - deploy: |
12 | | - placement: |
13 | | - constraints: |
14 | | - - node.labels.postgres == true |
15 | | - dask-sidecar: |
16 | | - deploy: |
17 | | - placement: |
18 | | - constraints: |
19 | | - - node.role == worker |
| 2 | + autoscaling: |
| 3 | + deploy: |
| 4 | + replicas: 0 |
| 5 | + agent: |
| 6 | + volumes: |
| 7 | + - /docker/volumes/:/docker/volumes/ |
| 8 | + postgres: |
| 9 | + labels: |
| 10 | + - "pgbackup.enable=true" |
| 11 | + deploy: |
| 12 | + placement: |
| 13 | + constraints: |
| 14 | + - node.labels.postgres == true |
| 15 | + dask-sidecar: |
| 16 | + deploy: |
| 17 | + placement: |
| 18 | + constraints: |
| 19 | + - node.role == worker |
20 | 20 |
|
21 | | - traefik: |
22 | | - command: |
23 | | - - "--api=true" |
24 | | - - "--api.dashboard=true" |
25 | | - - "--ping=true" |
26 | | - - "--entryPoints.ping.address=:9082" |
27 | | - - "--ping.entryPoint=ping" |
28 | | - - "--log.level=${SIMCORE_TRAEFIK_LOGLEVEL}" |
29 | | - - "--accesslog=false" |
30 | | - - "--metrics.prometheus=true" |
31 | | - - "--metrics.prometheus.addEntryPointsLabels=true" |
32 | | - - "--metrics.prometheus.addServicesLabels=true" |
33 | | - - "--entryPoints.metrics.address=:8082" |
34 | | - - "--metrics.prometheus.entryPoint=metrics" |
35 | | - - "--entryPoints.http.address=:80" |
36 | | - - "--entryPoints.http.forwardedHeaders.insecure" |
37 | | - - "--entryPoints.http.transport.respondingTimeouts.idleTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 |
38 | | - - "--entryPoints.http.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 |
39 | | - - "--entryPoints.http.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 |
40 | | - - "--entryPoints.postgres.address=:5432" |
41 | | - - "--entryPoints.simcore_api.address=:10081" |
42 | | - - "--entryPoints.simcore_api.forwardedHeaders.insecure" |
43 | | - - "--entryPoints.simcore_api.transport.respondingTimeouts.idleTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 |
44 | | - - "--entryPoints.simcore_api.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 |
45 | | - - "--entryPoints.simcore_api.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 |
46 | | - - "--entryPoints.traefik_monitor.address=:8080" |
47 | | - - "--entryPoints.traefik_monitor.forwardedHeaders.insecure" |
48 | | - - "--providers.swarm.endpoint=unix:///var/run/docker.sock" |
49 | | - - "--providers.swarm.network=${SWARM_STACK_NAME}_default" |
50 | | - # https://github.com/traefik/traefik/issues/7886 |
51 | | - - "--providers.swarm.refreshSeconds=1" |
52 | | - - "--providers.swarm.exposedByDefault=false" |
53 | | - - "--providers.swarm.constraints=Label(`io.simcore.zone`, `${TRAEFIK_SIMCORE_ZONE}`)" |
54 | | - - "--tracing=true" |
55 | | - - "--tracing.addinternals" |
56 | | - - "--tracing.otlp=true" |
57 | | - - "--tracing.otlp.http=true" |
58 | | - deploy: |
59 | | - resources: |
60 | | - limits: |
61 | | - memory: 2048M |
62 | | - cpus: '2.000' |
63 | | - labels: |
64 | | - - traefik.tcp.routers.${SWARM_STACK_NAME}_postgresRoute.entrypoints=${PREFIX_STACK_NAME}_postgres |
65 | | - - traefik.tcp.routers.${SWARM_STACK_NAME}_postgresRoute.tls=false |
66 | | - - traefik.tcp.routers.${SWARM_STACK_NAME}_postgresRoute.service=${SWARM_STACK_NAME}_postgresRoute |
67 | | - - traefik.tcp.services.${SWARM_STACK_NAME}_postgresRoute.loadbalancer.server.port=5432 |
68 | | - - "traefik.tcp.routers.${SWARM_STACK_NAME}_postgresRoute.rule=ClientIP(`195.176.8.0/24`) || ClientIP(`10.0.0.0/8`) || ClientIP(`172.16.0.0/12`) || ClientIP(`192.168.0.0/16`)" |
69 | | - wb-garbage-collector: |
70 | | - hostname: "{{.Service.Name}}" |
71 | | - wb-api-server: |
72 | | - deploy: |
73 | | - replicas: 3 |
74 | | - clusters-keeper: |
75 | | - deploy: |
76 | | - replicas: 0 |
77 | | - payments: |
78 | | - deploy: |
79 | | - replicas: 0 |
| 21 | + traefik: |
| 22 | + command: |
| 23 | + - "--api=true" |
| 24 | + - "--api.dashboard=true" |
| 25 | + - "--ping=true" |
| 26 | + - "--entryPoints.ping.address=:9082" |
| 27 | + - "--ping.entryPoint=ping" |
| 28 | + - "--log.level=${SIMCORE_TRAEFIK_LOGLEVEL}" |
| 29 | + - "--accesslog=false" |
| 30 | + - "--metrics.prometheus=true" |
| 31 | + - "--metrics.prometheus.addEntryPointsLabels=true" |
| 32 | + - "--metrics.prometheus.addServicesLabels=true" |
| 33 | + - "--entryPoints.metrics.address=:8082" |
| 34 | + - "--metrics.prometheus.entryPoint=metrics" |
| 35 | + - "--entryPoints.http.address=:80" |
| 36 | + - "--entryPoints.http.forwardedHeaders.insecure" |
| 37 | + - "--entryPoints.http.transport.respondingTimeouts.idleTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 |
| 38 | + - "--entryPoints.http.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 |
| 39 | + - "--entryPoints.http.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 |
| 40 | + - "--entryPoints.postgres.address=:5432" |
| 41 | + - "--entryPoints.simcore_api.address=:10081" |
| 42 | + - "--entryPoints.simcore_api.forwardedHeaders.insecure" |
| 43 | + - "--entryPoints.simcore_api.transport.respondingTimeouts.idleTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 |
| 44 | + - "--entryPoints.simcore_api.transport.respondingTimeouts.writeTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 |
| 45 | + - "--entryPoints.simcore_api.transport.respondingTimeouts.readTimeout=21600s" #6h, for https://github.com/traefik/traefik/issues/10805 |
| 46 | + - "--entryPoints.traefik_monitor.address=:8080" |
| 47 | + - "--entryPoints.traefik_monitor.forwardedHeaders.insecure" |
| 48 | + - "--providers.swarm.endpoint=unix:///var/run/docker.sock" |
| 49 | + - "--providers.swarm.network=${SWARM_STACK_NAME}_default" |
| 50 | + # https://github.com/traefik/traefik/issues/7886 |
| 51 | + - "--providers.swarm.refreshSeconds=1" |
| 52 | + - "--providers.swarm.exposedByDefault=false" |
| 53 | + - "--providers.swarm.constraints=Label(`io.simcore.zone`, `${TRAEFIK_SIMCORE_ZONE}`)" |
| 54 | + - "--tracing=true" |
| 55 | + - "--tracing.addinternals" |
| 56 | + - "--tracing.otlp=true" |
| 57 | + - "--tracing.otlp.http=true" |
| 58 | + deploy: |
| 59 | + resources: |
| 60 | + limits: |
| 61 | + memory: 2048M |
| 62 | + cpus: "2.000" |
| 63 | + labels: |
| 64 | + - traefik.tcp.routers.${SWARM_STACK_NAME}_postgresRoute.entrypoints=postgres |
| 65 | + - traefik.tcp.routers.${SWARM_STACK_NAME}_postgresRoute.tls=false |
| 66 | + - traefik.tcp.routers.${SWARM_STACK_NAME}_postgresRoute.service=${SWARM_STACK_NAME}_postgresRoute |
| 67 | + - traefik.tcp.services.${SWARM_STACK_NAME}_postgresRoute.loadbalancer.server.port=5432 |
| 68 | + - "traefik.tcp.routers.${SWARM_STACK_NAME}_postgresRoute.rule=ClientIP(`195.176.8.0/24`) || ClientIP(`10.0.0.0/8`) || ClientIP(`172.16.0.0/12`) || ClientIP(`192.168.0.0/16`)" |
| 69 | + wb-garbage-collector: |
| 70 | + hostname: "{{.Service.Name}}" |
| 71 | + wb-api-server: |
| 72 | + deploy: |
| 73 | + replicas: 3 |
| 74 | + clusters-keeper: |
| 75 | + deploy: |
| 76 | + replicas: 0 |
| 77 | + payments: |
| 78 | + deploy: |
| 79 | + replicas: 0 |
0 commit comments