* updates pom-xml and adds Dockerfile to build a web-app image * add depends-on vs links yml examples
14 lines
242 B
YAML
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 |