Docker Deploy
December 19, 2022Less than 1 minute
Video tutorial
Quick start with docker-compose
In deploy/docker-compose/all_in_one
directory, Github
There are mysql and postgres folders, choose a folder to open according to your needs.
2 Steps
1. Run docker-compose
docker compose up -d
2. Initialize database
Warning
If a 503 error occurs, please restart the backend UI container separately.
3. Restart API container
Warning
You should restart core-api container after initalization in order to refresh casbin cache. You do not need to restart service after v1.0.14.
Info
In deploy/docker-compose/all_in_one
folder, you can check the api and rpc configuration
Warning
To deploy your own service to docker, you only need to modify it to your own image
Info
Domestic users use domestic mirror sources
docker compose -f docker-compose-cn.yaml up -d
Deploy only the Core environment
Execute in the deploy/core-only
directory
docker compose up -d
Info
Domestic users use domestic mirror sources
docker compose -f docker-compose-cn.yaml up -d