java-tutorials/docker-modules/docker-compose/two-compose-share-same-network/create-network-from-service/docker-compose-redis-servic...

14 lines
195 B
YAML

services:
redis:
image: redis:latest
container_name: redis
ports:
- '6379:6379'
networks:
- network
networks:
network:
driver: bridge
name: redis_network