Giter Site home page Giter Site logo

Comments (4)

intri-in avatar intri-in commented on July 24, 2024

You've commented out these lines:

env_file:
- .env.local

This directive passes a .env to MMDL container. You'd need to setup a .env file as well.

You can use this guide:

https://manage-my-damn-life-nextjs.readthedocs.io/en/latest/install/Configuration/WithoutDocker/

In case you're wondering where the "mmdm_user" is coming from, it's from an old version of default .env file that probably got used during the build process of the docker image (when I uploaded it to the docker hub).

from manage-my-damn-life-nextjs.

dashrandom avatar dashrandom commented on July 24, 2024

Hi, sorry, I should've mentioned that I've indeed set up a .env file, just that I defaulted it to .env so I commented out the lines

#    env_file:
#      - .env.local

My .env is as follows:

############################################################
## The following variables NEED to be set before execution.
############################################################


## Database variables.
DB_HOST=db
DB_USER=root
DB_PASS=password
DB_PORT="3306"
DB_NAME=mmdl
DB_CHARSET="utf8mb4"
DB_COLLATE="utf8mb4_0900_ai_ci"

## AES Encryption Password
## This is used to encrypt CalDAV passwords in the database.

AES_PASSWORD=password

############################################################
## The following variables aren't required for basic functionality,
## but might be required to be set for some additional features.
############################################################

## SMTP Settings
#SMTP_HOST=host
#SMTP_USERNAME=username
#SMTP_PASSWORD=password
#[email protected]
#SMTP_PORT=25
#SMTP_USESECURE=false 

## Enable NextAuth.js for third party authentication. It's highly recommended that you use a third party authentication service. Please note that third party authentication will eventually become the default option in the future versions of MMDL (probably by v1.0.0).

# The following variable's name has changed in v0.4.1
USE_NEXT_AUTH=false

# This is a variable used by NextAuth.js. This must be same as NEXT_PUBLIC_BASE_URL.
NEXTAUTH_URL="http://localhost:3001"

# This is a variable used by NextAuth.js. Must be generated.
# https://next-auth.js.org/configuration/options#nextauth_secret
NEXTAUTH_SECRET="secret"

##  Refer to docs for guide to set following variables. Ignore if NEXT_PUBLIC_USE_NEXT_AUTH is set to false. Uncomment as required.

# KEYCLOAK_ISSUER_URL="http://localhost:8080/realms/MMDL"
# KEYCLOAK_CLIENT_ID="mmdl-front-end"
# KEYCLOAK_CLIENT_SECRET="SAMPLE_CLIENT_SECRET"

# GOOGLE_CLIENT_ID=""
# GOOGLE_CLIENT_SECRET=""

# AUTHENTIK_CLIENT_ID=""
# AUTHENTIK_CLIENT_SECRET=""
# AUTHENTIK_ISSUER=""



############################################################
## The following variables aren't required to be set,
## but affect behaviour that you might want to customise.
############################################################

# User Config
NEXT_PUBLIC_DISABLE_USER_REGISTRATION=false

# After this value, old ssid will be deleted.
MAX_CONCURRENT_LOGINS_ALLOWED=3

# Maxium length of OTP validity, in seconds.
MAX_OTP_VALIDITY=1800

# Maximum length of a login session in seconds.
MAX_SESSION_LENGTH=2592000

# Enforce max length of session.
ENFORCE_SESSION_TIMEOUT=true

############################################################
## The following variables are advanced settings,
## and must be only changed in case you're trying something
## specific.
############################################################

#Whether user is running install from a docker image.
DOCKER_INSTALL="true"

## General Config
NEXT_PUBLIC_API_URL="http://localhost:3001/api"

## Debug Mode
NEXT_PUBLIC_DEBUG_MODE=true

#Max number of recursions for finding subtasks. Included so the recursive function doesn't go haywire.
#If subtasks are not being rendered properly, try increasing the value.
NEXT_PUBLIC_SUBTASK_RECURSION_CONTROL_VAR=100

## Test Mode
NEXT_PUBLIC_TEST_MODE=false

from manage-my-damn-life-nextjs.

intri-in avatar intri-in commented on July 24, 2024

I defaulted it to .env so I commented out the lines

I tested it, and it seems like without the env_file directive, the environment variables aren't passed to the MMDL container.
Could you try still passing the .env file by uncommenting those lines, like so:

env_file:
  - .env

from manage-my-damn-life-nextjs.

dashrandom avatar dashrandom commented on July 24, 2024

@intri-in Can confirm this is the case and it works now! Thanks! Seems weird though, because docker run or docker compose should automatically parse .env files if nothing is specified.

Might want to add a warning to the docker-compose.yml about the env_file option.

from manage-my-damn-life-nextjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.