version: '2'
services:
ciencia-app:
image: danimaniarqsoft/ciencia:0.0.1
environment:
- SPRING_PROFILES_ACTIVE=prod,swagger
- SPRING_DATA_MONGODB_URI=mongodb://ciencia-mongodb:27017
- SPRING_DATA_MONGODB_DATABASE=ciencia
- APP_SLEEP=10 # gives time for the database to boot before the application
ports:
- 8080:8080
ciencia-mongodb:
image: mongo:3.4.10
ports:
- "27017:27017"