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

Make local dev work #523

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

codecakes
Copy link
Contributor

@codecakes codecakes commented Mar 9, 2024

Update: This PR attempts to address issue #525

Upon following the installation and local development guide on README, there were issues running docker compose on local *nix/mac platform.

Given the following instance of a .env file, the backend localhost for dev works for a local docker like cmd such as
podman compose -f docker/docker-compose.yml up --build --wait

# Environment variables

SECRET_KEY="mco934$@)NHUYTC%6789"
ENV_TYPE="dev"
DOMAIN_NAME="localhost"

# AWS
AWS_BUCKET_NAME=""

AWS_ACCESS_KEY_ID=""
AWS_SECRET_ACCESS_KEY=""
AWS_SES_REGION_NAME=""
AWS_SES_REGION_ENDPOINT=""

# DB
DBNAME="crm"
DBUSER="crm"
DBPASSWORD="crm"
DBHOST="localhost"
DBPORT="5432"

# Sentry
SENTRY_DSN=""

# Celery
CELERY_BROKER_URL="redis://redis-bottlecrm:6379/0"
CELERY_RESULT_BACKEND="db+sqlite:///results.db"

# Swagger
SWAGGER_ROOT_URL=""

#CACHES
MEMCACHELOCATION=""

# Email
DEFAULT_FROM_EMAIL=""
ADMIN_EMAIL=""

@codecakes codecakes marked this pull request as ready for review March 9, 2024 21:10

crm-db:
image: postgres:latest
container_name: crm-db
volumes:
- /var/lib/containers/storage/volumes/bottlecrm/_data:/var/lib/postgresql/data/pgdata
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is left as a reference only to providing volume that i created using podman for local mount which ofcourse could be modified to a more standard mount point.

@@ -1,31 +1,22 @@
FROM ubuntu:22.04
FROM common-bottle-dockerfile
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ensure to build this image first

docker build -t common-bottle-dockerfile docker/dockerfile

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.

1 participant