java-tutorials/docker-modules/docker-compose/two-compose-share-same-network/join-existing-network/docker-compose-my-app-servi...

12 lines
191 B
YAML
Raw Normal View History

services:
my_app:
image: web-app:latest
container_name: web-app
ports:
- "8080:8080"
networks:
- network-example
networks:
network-example:
external: true