You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//This command will login Docker Hub with your GitHub account. Docker Hub limits unlogged users' connection, and if directly pull from official source, it will definitely fail.
//images listed above are required by default. Pull those manually because it may fail when pull those all together by 'docker-compose.yaml' - one fails, all compose fails
4 Environment
cp .env.example .env
// @/dify/docker
5 Configure Email
edit .env RESEND EMAIL
Search 'Resend', and put your [RESEND API] and [admin email address] in this file.
// @/dify/docker/.env
6 HTTPS SSL Certificate configuration (OPTIONAL)
Copy [PrivateKey] and [PublicKey] to /root/dify/docker/nginx/ssl
yourkey.pem
yourkey.key
By these steps, it won't fail to start up after the first start up.
//My three deploying attempts earlier all failed after I restarted the docker compose. [crying]
One more thing:
For deploy on macOS, the Docker Desktop Mac Version, it may fail to start up with error of mount denied or file sharing issue.
Reason is that, macOS is not case sensitive by default, but the docker engine on macOS is.
Simple way to fix this on macOS is add another file-sharing directory in lower cases. (Default directory is '/Users', upper letter)
GO: Docker Desktop - settings - resources - filesharing - directories, add '/users' (lower letter)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Self Checks
Content
Here are tested steps to smoothly deploy in China. Reasons of why this differ from official doc are listed in each steps.
Server must have more than 4GB of memory!!!
1 gitclone
git clone https://githubfast.com/langgenius/dify.git
//directly clone from GitHub server may fail. Other GitHub mirrors are also ok.
2 docker login
docker login ghcr.io -u [your username] -p [your GitHub access token]
//This command will login Docker Hub with your GitHub account. Docker Hub limits unlogged users' connection, and if directly pull from official source, it will definitely fail.
3 pull image
//images listed above are required by default. Pull those manually because it may fail when pull those all together by 'docker-compose.yaml' - one fails, all compose fails
4 Environment
cp .env.example .env
// @/dify/docker
5 Configure Email
edit .env RESEND EMAIL
Search 'Resend', and put your [RESEND API] and [admin email address] in this file.
// @/dify/docker/.env
6 HTTPS SSL Certificate configuration (OPTIONAL)
Copy [PrivateKey] and [PublicKey] to /root/dify/docker/nginx/ssl
yourkey.pem
yourkey.key
7 edit docker-compose-templete.yaml SSL (OPTIONAL)
Find these and customize
@/dify/docker/docker-compose-templete.yaml
8 Ready!
docker compose up -d
access http://[your-domain]
And Enjoy!
By these steps, it won't fail to start up after the first start up.
//My three deploying attempts earlier all failed after I restarted the docker compose. [crying]
One more thing:
For deploy on macOS, the Docker Desktop Mac Version, it may fail to start up with error of mount denied or file sharing issue.
Reason is that, macOS is not case sensitive by default, but the docker engine on macOS is.
Simple way to fix this on macOS is add another file-sharing directory in lower cases. (Default directory is '/Users', upper letter)
GO: Docker Desktop - settings - resources - filesharing - directories, add '/users' (lower letter)
Beta Was this translation helpful? Give feedback.
All reactions