Sign inSign up

vitcmun/munverse

By vitcmun

•Updated over 3 years ago

Docker image for https://github.com/VITCMUN/munverse

Image
0

727

vitcmun/munverse repository overview

⁠Quick references

⁠How to use this image

This image should be used with a docker-compose⁠ script.

It uses a MongoDB database. Additionally, the development config consists of mongo-express, a UI for the mongo server.

In the same directory as the compose script, there should be a media directory to hold profile pictures and logos for the event and council. The structure should be:

media/
├── profiles/
│   ├── user1.png
│   └── user2.png
├── event/
│   └── example_event_logo.png
├── council/
│   └── example_council_logo.png

For production, run using docker-compose up and visit http://localhost.

For development, run using docker-compose up -f docker-compose.yaml -f docker-compose.dev.yaml up and visit http://localhost for webapp and http://localhost:8081 for mongo-express.

⁠Environment variables

This image uses several environment variables to configure the web app. They should be kept in the .env file.

VariableUse
NODE_ENVPossible values - 'test', 'development', 'production'
MONGO_USERNAMEUsername for MongoDB server
MONGO_PASSWORDPassword for MongoDB server
MONGO_DBName of the database to use
MONGO_EXPRESS_USERNAMEUsername for mongo-express
MONGO_EXPRESS_PASSWORDPassword for mongo-express
MUNVERSE_EVENT_NAMEEvent name, eg. VITCMUN
MUNVERSE_EVENT_URLrelative URL for event logo
MUNVERSE_COUNCIL_NAMECouncil name, eg. AIPPM
MUNVERSE_COUNCIL_URLrelative URL for council logo
MUNVERSE_ADMIN_USERNAMEUsername for app's admin account
MUNVERSE_ADMIN_PASSWORDPassword for app's admin account

Tag summary

Content type

Image

Digest

sha256:f6be9047d…

Size

37.6 MB

Last updated

over 3 years ago

docker pull vitcmun/munverse