Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (34 sloc) 625 Bytes
---
app:
build: .
ports:
- "3000"
links:
- pg
environment:
- DATABASE_URL=postgres://postgres:pass@pg:5432/app
pg:
image: postgres:9.4.5
ports:
- "5432"
environment:
- POSTGRES_PASSWORD=pass
- POSTGRES_USER=postgres
volumes:
- "./docker/psql-init:/docker-entrypoint-initdb.d"
mvn:
image: maven:3.3.9-jdk-8-alpine
volumes_from:
- data
volumes:
- ".:/usr/src/app"
working_dir: "/usr/src/app"
links:
- pg
environment:
- PG_HOST=pg
data:
image: busybox
volumes:
- "./docker/volumes/m2:/root/.m2"
- "./docker/volumes/artifacts:/artifacts"