Useful links:
Steps:
- Create a network by running
docker network create unleash
- Start a postgres database:
docker run -e POSTGRES_PASSWORD=some_password \
-e POSTGRES_USER=unleash_user -e POSTGRES_DB=unleash \
--network unleash --name postgres postgres
- Start Unleash via docker:
docker run -p 4242:4242 \
-e DATABASE_HOST=postgres -e DATABASE_NAME=unleash \
-e DATABASE_USERNAME=unleash_user -e DATABASE_PASSWORD=some_password \
-e DATABASE_SSL=false \
--network unleash unleashorg/unleash-server
All configuration options available in our documentation.
- Once started up, you'll have a user with
username: admin
password: unleash4all
This user is an admin user and can be used to create other users, we do suggest you change the password :)
- Clone the unleash-docker repository.
- Run
docker-compose build
in repository root folder. - Run
docker-compose up
in repository root folder.
Start by cloning this repository.
We have set up docker-compose
to start postgres and the unleash server together. This makes it really fast to start up
unleash locally without setting up a database or node.
$ docker-compose build
$ docker-compose up
We are using docker-compose version 3.9 and it requires:
- Docker engine 19.03.0+
- Docker compose 2.0.0+
For more info, check out the compatibility matrix on Docker's website: compatibility-matrix
We expect a build-arg for which node-version to build with so if you're building using the docker cli, you have to use --build-arg NODE_VERSION=14-alpine
OR --build-arg NODE_VERSION=16-alpine
When we upgrade the unleash-version
this project should be tagged with the same version number.
git tag -a v3.7.0 -m "upgrade to unleash-server v3.7.0"
git push origin main --follow-tags
This will automatically trigger a github actions which will build the new tag and push it to docker-hub.