java-tutorials/docker-modules/docker-compose/two-compose-share-same-network/create-network-from-service/docker-compose-my-app-servi...

13 lines
197 B
YAML
Raw Normal View History

services:
my_app:
image: web-app:latest
container_name: web-app
ports:
- "8080:8080"
networks:
- my-app
networks:
my-app:
name: redis_network
external: true