diff options
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index e6fbf97..3aeb66e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,27 +1,31 @@ version: "3.0" services: mongo: - image: mongo + image: mongo:3 + restart: always volumes: - /var/lib/mongo - ports: - - 27017:27017 command: --smallfiles mariadb: - image: mariadb + image: mariadb:10 restart: always volumes: - /var/lib/mariadb environment: MYSQL_DATABASE: nbi - MYSQL_ROOT_PASSWORD: toto + MYSQL_ROOT_PASSWORD: $SPRING_DATASOURCE_PASSWORD # APP *************************************************************************************** nbi: - build: . - image: nbi + build: + context: . + args: + SERVER_PORT: $SERVER_PORT ports: - - 8080:8080 + - $SERVER_PORT:$SERVER_PORT + environment: + SPRING_DATASOURCE_URL: jdbc:mariadb://mariadb:3306/nbi + SPRING_DATA_MONGODB_HOST: mongo depends_on: - mariadb - mongo |