Skip to content

Commit 41116db

Browse files
committed
Add docker-api-proxy service
1 parent 816f091 commit 41116db

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

scripts/deployments/validate_simcore_stack_yml.bash

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ for service in $($_yq e '.services | keys | .[]' ${COMPOSE_FILE}); do
7979
if [ "${TARGETNAME}" == "efs-guardian" ]; then
8080
continue
8181
fi
82+
if [ "${TARGETNAME}" == "docker-api-proxy" ]; then
83+
continue
84+
fi
8285
export TARGET_BINARY="simcore-service"
8386
echo "Assuming TARGET_BINARY in ${SETTINGS_BINARY_PATH}/${TARGET_BINARY}"
8487
# Pull image from registry, just in case

services/simcore/docker-compose.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,25 @@ services:
895895
- traefik.http.routers.${PREFIX_STACK_NAME}_dynamic_scheduler.tls=true
896896
- traefik.http.routers.${PREFIX_STACK_NAME}_dynamic_scheduler.middlewares=ops_gzip@swarm, ops_auth@swarm
897897

898+
docker-api-proxy:
899+
deploy:
900+
mode: global
901+
update_config:
902+
parallelism: 2
903+
order: start-first
904+
failure_action: continue
905+
delay: 10s
906+
placement:
907+
constraints:
908+
- node.role==manager
909+
resources:
910+
reservations:
911+
cpus: "0.1"
912+
memory: "256M"
913+
limits:
914+
cpus: "0.5"
915+
memory: "512M"
916+
898917
volumes:
899918
rabbit_data:
900919
name: ${SWARM_STACK_NAME}_rabbit_data

0 commit comments

Comments
 (0)