Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 720 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 720 Bytes

api

Just another CRUD

Usage

Run the application locally

lein ring server

Use export (ex. export MONGO_HOST=mongo) to change local variables

Packaging and running

docker build -t <foo>/<bar>:<tag>

docker run --name mongo -d \
    -e MONGO_INITDB_ROOT_USERNAME=schedule \
    -e MONGO_INITDB_ROOT_PASSWORD=<password> mongo:4.2

docker run --name api -d \
    --link mongo:mongo \
    -e MONGO_HOST=mongo \
    -e MONGO_USER=schedule \
    -e MONGO_PASSWORD=<password> \
    -p 3000:3000 <foo>/<bar>:<tag>

Variables

Name Default
MONGO_HOST localhost
MONGO_PORT 27017
MONGO_DATABASE_NAME schedule
MONGO_USER root
MONGO_AUTH_DB admin
MONGO_PASSWORD password