Skip to content
This repository has been archived by the owner on May 3, 2021. It is now read-only.

otus-solutions/otus-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NETWORK - CREATE

sudo docker network create -d bridge otus-platform-network

DATABASE - BUILD IMAGE

sudo docker build --target database -t otus-database .

DATABASE - BUILD CONTAINER

sudo docker run -v $(pwd)/persistence:/data/db --network=otus-platform-network -p 51003:27017 --name otus-database -d otus-database --wiredTigerCacheSizeGB='1.2'

API - BUILD IMAGE

sudo docker build --target api -t otus-api .

API - BUILD CONTAINER

sudo docker run -v $(pwd)/persistence:/opt/wildfly/standalone/log --network=otus-platform-network -p 51002:8080 -p 51007:9990 --name otus-api -d otus-api

NETWORK - CONNECT DB-NETWORK

sudo docker network connect db-distribution-network otus-api