Skip to content

Commit fc2f166

Browse files
mrnicegyu11Dustin Kaiser
andauthored
Revise docker networks (ITISFoundation#3543)
Co-authored-by: Dustin Kaiser <[email protected]>
1 parent 59d9232 commit fc2f166

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

services/docker-compose.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ services:
3131
image: ${DOCKER_REGISTRY:-itisfoundation}/autoscaling:${DOCKER_IMAGE_TAG:-latest}
3232
init: true
3333
hostname: "{{.Node.Hostname}}-{{.Service.Name}}-{{.Task.Slot}}"
34+
networks:
35+
- default
3436
environment:
3537
- LOG_LEVEL=${LOG_LEVEL:-WARNING}
3638
env_file:
@@ -282,6 +284,8 @@ services:
282284
limits:
283285
cpus: "1.0"
284286
memory: 200M
287+
networks:
288+
- default
285289
volumes:
286290
- /var/run/docker.sock:/var/run/docker.sock
287291
- /var/lib/docker/volumes/:/var/lib/docker/volumes/
@@ -327,7 +331,6 @@ services:
327331
DASK_START_AS_SCHEDULER: 1
328332

329333
networks:
330-
- interactive_services_subnet
331334
- computational_services_subnet
332335

333336
datcore-adapter:
@@ -368,7 +371,6 @@ services:
368371
networks:
369372
- default
370373
- interactive_services_subnet
371-
- computational_services_subnet
372374
- storage_subnet
373375

374376
rabbit:
@@ -380,7 +382,6 @@ services:
380382
- RABBITMQ_DEFAULT_PASS=${RABBIT_PASSWORD}
381383
networks:
382384
- default
383-
- computational_services_subnet
384385
- interactive_services_subnet
385386
healthcheck:
386387
# see https://www.rabbitmq.com/monitoring.html#individual-checks for info about health-checks available in rabbitmq
@@ -402,7 +403,7 @@ services:
402403
- POSTGRES_PORT=${POSTGRES_PORT}
403404
- POSTGRES_USER=${POSTGRES_USER}
404405
networks:
405-
- default
406+
- default # actually needed for the postgres service only
406407

407408
postgres:
408409
image: "postgres:14.5-alpine@sha256:db802f226b620fc0b8adbeca7859eb203c8d3c9ce5d84870fadee05dea8f50ce"
@@ -421,7 +422,6 @@ services:
421422
networks:
422423
- default
423424
- interactive_services_subnet
424-
- computational_services_subnet
425425
healthcheck:
426426
test:
427427
[
@@ -539,10 +539,9 @@ services:
539539
- traefik.http.middlewares.ratelimit-${SWARM_STACK_NAME}_api-server.ratelimit.burst=10
540540
# X-Forwarded-For header extracts second IP from the right, count starts at one
541541
- traefik.http.middlewares.ratelimit-${SWARM_STACK_NAME}_api-server.ratelimit.sourcecriterion.ipstrategy.depth=2
542-
543542
networks:
544543
- default
545-
- interactive_services_subnet
544+
- interactive_services_subnet # for legacy dynamic services
546545
#healthcheck:
547546
# test: wget --quiet --tries=1 --spider http://localhost:9082/ping || exit 1
548547
# interval: 3s
@@ -571,12 +570,4 @@ networks:
571570
config:
572571
- subnet: "172.8.0.0/16"
573572
computational_services_subnet:
574-
driver: overlay
575573
attachable: true
576-
internal: false
577-
labels:
578-
com.simcore.description: "computational services network"
579-
ipam:
580-
driver: default
581-
config:
582-
- subnet: "172.9.0.0/16"

0 commit comments

Comments
 (0)