java-tutorials/docker-modules/docker-compose/depends-on_vs_links/docker-compose-links.yml

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