[FIX] Using networks instead of links

Docker links are deprecated, so we're using a recommended way.
Docker Networks!

Signed-off-by: Sebastian Waldbauer <waldbauer@cert.at>
This commit is contained in:
Sebastian Waldbauer
2021-02-04 09:41:09 +01:00
parent 370b9f1798
commit 3fc8106949

View File

@@ -8,8 +8,10 @@ services:
- redis-server - redis-server
- /usr/local/etc/redis/redis.conf - /usr/local/etc/redis/redis.conf
restart: always restart: always
networks:
- intelmq-internal
nginx: nginx:
image: intelmq-nginx:latest image: certat/intelmq-nginx:latest
restart: always restart: always
ports: ports:
- 1337:80 - 1337:80
@@ -17,14 +19,15 @@ services:
- ./intelmq-manager/html:/www - ./intelmq-manager/html:/www
depends_on: depends_on:
- intelmq - intelmq
links: networks:
- intelmq - intelmq-internal
intelmq: intelmq:
image: intelmq-full:1.0 image: certat/intelmq-full:1.0
volumes: volumes:
- ./example_config/intelmq/etc/:/opt/intelmq/etc/ - ./example_config/intelmq/etc/:/opt/intelmq/etc/
- ./example_config/intelmq-api:/opt/intelmq-api/config - ./example_config/intelmq-api:/opt/intelmq-api/config
- ./intelmq_logs:/opt/intelmq/var/log - ./intelmq_logs:/opt/intelmq/var/log
- ./intelmq_output:/opt/intelmq/var/lib/bots
- ./example_config/intelmq/var/lib/bot:/opt/intelmq/var/lib/bot - ./example_config/intelmq/var/lib/bot:/opt/intelmq/var/lib/bot
depends_on: depends_on:
- redis - redis
@@ -32,5 +35,9 @@ services:
INTELMQ_PIPELINE_DRIVER: "redis" INTELMQ_PIPELINE_DRIVER: "redis"
INTELMQ_PIPELINE_HOST: redis INTELMQ_PIPELINE_HOST: redis
INTELMQ_REDIS_CACHE_HOST: redis INTELMQ_REDIS_CACHE_HOST: redis
links: networks:
- redis - intelmq-internal
networks:
intelmq-internal:
driver: bridge