Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing Docker Dev Environment #456

Merged
merged 1 commit into from
Oct 5, 2024

Conversation

CrypticC3s4r
Copy link
Contributor

I had issues running the Docker development environment without first setting up a local development environment.
And put the Environment variables into a seperate .env file

Copy link
Collaborator

@MohamedBassem MohamedBassem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking the time to fix the docker dev env! Left some small comments.


RUN apk add --no-cache libc6-compat make g++ py3-pip linux-headers
ENV PUPPETEER_SKIP_DOWNLOAD true
FROM node:21-alpine AS base
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "as base" here is not needed.

Comment on lines -11 to -13
environment:
MEILI_ADDR: http://meilisearch:7700
DATA_DIR: /data
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think those are still needed (similar to those of the workers)

MEILI_ADDR: http://meilisearch:7700
DATA_DIR: /data
env_file:
- .env # Automatically load all variables from this file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to add a .env, let's add a .env.sample (even if it's empty) in the directory so that people can get it up and running quickly.

@CrypticC3s4r
Copy link
Contributor Author

Removed the BASE and introduced an .env.sample for configuration recommendation

@MohamedBassem MohamedBassem merged commit 3f22801 into hoarder-app:main Oct 5, 2024
@MohamedBassem
Copy link
Collaborator

Thanks @CrypticC3s4r!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants