8000 GitHub - mubin986/frappe_docker: Docker images for production and development setups of the Frappe framework and ERPNext
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Docker images for production and development setups of the Frappe framework and ERPNext

License

Notifications You must be signed in to change notification settings

mubin986/frappe_docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Stable Build Develop

Everything about Frappe and ERPNext in containers.

Getting Started

To get started you need Docker, docker-compose, and git setup on your machine. For Docker basics and best practices refer to Docker's documentation.

Once completed, chose one of the following two sections for next steps.

Try in Play With Docker

To play in an already set up sandbox, in your browser, click the button below:

Try in PWD

Try on your Dev environment

First clone the repo:

git clone https://github.com/frappe/frappe_docker
cd frappe_docker

Then run: docker compose -f pwd.yml up -d

To run on ARM64 architecture follow this instructions

After cloning the repo run this command to build multi-architecture images specifically for ARM64.

docker buildx bake --no-cache --set "*.platform=linux/arm64"

and then

  • add platform: linux/arm64 to all services in the pwd.yml
  • replace the current specified versions of erpnext image on pwd.yml with :latest

Then run: docker compose -f pwd.yml up -d

Final steps

Wait for 5 minutes for ERPNext site to be created or check create-site container logs before opening browser on port 8080. (username: Administrator, password: admin)

If you ran in a Dev Docker environment, to view container logs: docker compose -f pwd.yml logs -f create-site. Don't worry about some of the initial error messages, some services take a while to become ready, and then they go away.

Documentation

Contributing

If you want to contribute to this repo refer to CONTRIBUTING.md

This repository is only for container related stuff. You also might want to contribute to:

Frappe Docker Management CLI

A command-line interface for managing Frappe Docker containers.

Configuration

The CLI uses a config.json file to store configuration. You can create one by copying config.sample.json and modifying it, or use the config command:

./cli.py config --frappe-path /path/to/frappe_docker \
                --backup-database /path/to/backup/database.sql.gz \
                --backup-public-files /path/to/backup/public-files.tar \
                --backup-private-files /path/to/backup/private-files.tar \
                --docker-compose-file pwd.yml \
                --platform linux/arm64 \
                --container-prefix your_prefix

Configuration Options

  • frappe_path: Path to your Frappe Docker installation
  • backup_paths: Paths to your backup files
    • database: Path to database backup file
    • public_files: Path to public files backup
    • private_files: Path to private files backup
  • docker_compose_file: Name of your Docker Compose file (default: pwd.yml)
  • platform: Docker platform (linux/arm64 for M1/M2 Macs, linux/amd64 for Intel)
  • container_names: Container name prefixes
    • backend: Backend container name prefix
    • frontend: Frontend container name prefix

Commands

  • config: Configure paths and settings
  • build: Build the Frappe Docker image
  • run: Start the Frappe Docker containers
  • restart: Restart the Frappe Docker containers
  • remove: Remove Frappe Docker containers, volumes, and networks
  • migrate: Run database migrations
  • restore_db: Restore the database from backup
  • restore_files: Restore files from backup
  • restore_lms: Install and restore LMS app
  • restore_hrms: Install and restore HRMS app

Usage Examples

# Configure the CLI
./cli.py config --frappe-path /path/to/frappe_docker

# Build and run the containers
./cli.py build
./cli.py run

# Restore from backup
./cli.py restore_db
./cli.py restore_files

# Install additional apps
./cli.py restore_lms
./cli.py restore_hrms

Development

The CLI is built using Click and Python. Each command corresponds to one of the shell scripts in the directory. The shell scripts use the configuration from config.json to determine paths and settings.

About

Docker images for production and development setups of the Frappe framework and ERPNext

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 51.9%
  • Dockerfile 27.5%
  • Shell 15.8%
  • HCL 4.8%
0