lucaCambi77 09651da81e [ BAEL-5503 ] - Difference Between links and depends_on in Docker-Compose (#12503)
* updates pom-xml and adds Dockerfile to build a web-app image

* add depends-on vs links yml examples
2022-07-16 10:37:07 -05:00

14 lines
242 B
YAML

services:
db:
image: postgres:latest
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- 5432:5432
web-app:
image: web-app:latest
ports:
- 8080:8080
links:
- db