Sign inSign up

eaudeweb/lamunca-management

By eaudeweb

•Updated over 8 years ago

lamunca management tool

Image
0

1.1K

eaudeweb/lamunca-management repository overview

⁠La Munca

Web application for managing employee absences.

Docker

⁠Using the docker image

⁠Testing on local
  1. Pull the docker image from Docker Hub: docker pull eaudeweb/lamunca

  2. Create and run the container docker run eaudeweb/lamunca

  3. Open your browser to http://localhost:3000⁠

⁠Use in production

By default, the timeoff container will use a sqlite database and a no smtp server will be configured.

To configure a production database, set NODE_ENV environment variable to production and set corresponding MYSQL variables: NODE_ENV=production, see docker-compose.yml.example

You can configure the container using docker-compose:

  1. Clone the repo: git clone https://github.com/eaudeweb/lamunca.git

  2. Change working directory: cd lamunca

  3. Edit desired files:

most of the conf files are here lamunca/views/

  1. After edit run docker-compose in the same directory where your docker-compose.yml file is located: docker-compose up -d

  2. Open your browser to http://localhost:3000⁠

⁠Environment variables

You can set the following variables to configure the lamunca_app container:

Variable nameConfigurationDefaultPossible valuesRemarks
NODE_ENVSet environmentdevelopmentdevelopment, production, testYou should always use production
SENDER_MAILMails fromNoneemail addressNeeded for enabling mail sending
SMTP_HOSTsmtp server hostNonehostNeeded for enabling mail sending
SMTP_PORTsmtp server portNoneportNeeded for enabling mail sending
SMTP_USERsmtp usernameNoneusername/addressNeeded for enabling mail sending
SMTP_PASSWORDsmtp passwordNonepasswordNeeded for enabling mail sending
APP_URLSet application URL in sent mailshttps://lamunca.eaudeweb.roURLYou should set this
PROMOTION_URLSet url in footer mailshttps://lamunca.eaudeweb.roURLYou can change this if you want footer mail link to redirect to your hosted application
ALLOW_ACCOUNTS_CREATIONEnable/Disable public companies account creationtruetrue , falseYou need to enable account creation at least on first run to create your company. You can disable it afterwards and restart the container

⁠Building the docker image

  1. Clone the repo: git clone repo

  2. Change working directory: cd repo

  3. Build image: docker build -t lamunca:latest .

Tag summary

Content type

Image

Digest

Size

315.9 MB

Last updated

over 8 years ago

docker pull eaudeweb/lamunca-management