Skip to content

Commit

Permalink
Fix docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
alabotski committed Feb 25, 2020
1 parent 8e9332a commit 78a8433
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions api/src/main/resources/application-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
spring:
data:
mongodb:
host: maas-mongodb
3 changes: 2 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
version: '3'
version: '2'

services:
maas-mongodb:
extends:
file: docker-mongo.yml
service: maas-mongodb
maas-api:
container_name: maas-api
image: maas-api:0.0.1-SNAPSHOT
environment:
- _JAVA_OPTIONS=-Xmx512m -Xms256m
Expand Down
3 changes: 2 additions & 1 deletion docker/docker-mongo.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
version: '3'
version: '2'

services:
maas-mongodb:
container_name: maas-mongodb
image: mongo:4.2.3
restart: always
ports:
Expand Down

0 comments on commit 78a8433

Please sign in to comment.