java-tutorials/docker-modules/docker-compose/two-compose-share-same-network/join-existing-network/docker-compose-redis-servic...

13 lines
187 B
YAML

services:
redis:
image: redis:latest
container_name: redis
ports:
- '6379:6379'
networks:
- network-example
networks:
network-example:
external: true