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

14 lines
247 B
YAML
Raw Normal View History

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