1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

docs: update getting started guide with docker options (#697)

This commit is contained in:
Fredrik Strand Oseberg 2021-01-27 20:11:41 +01:00 committed by GitHub
parent 00c7d634d2
commit 01074fd437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,10 +62,23 @@ unleash -d postgres://unleash_user:password@localhost:5432/unleash -p 4242
### Option three - use Docker
Launch the [Unleash server Docker image](https://hub.docker.com/r/unleashorg/unleash-server/).
[View the image on dockerhub](https://hub.docker.com/r/unleashorg/unleash-server/)
#### Docker-compose
1. Clone the [unleash-docker](https://github.com/Unleash/unleash-docker) repository.
2. Run `docker-compose build` in repository root folder.
3. Run `docker-compose up` in repository root folder.
#### Manually
1. Create a network by running `docker create network unleash`
2. Run
```sh
docker run -d -e DATABASE_URL=postgres://user:pass@10.200.221.11:5432/unleash unleashorg/unleash-server
docker run -e POSTGRES_PASSWORD={INSERT_PASSWORD} -e POSTGRES_USER={INSERT_USER} -e POSTGRES_DB=unleash --network unleash postgres
docker run -p 4242:4242 --network unleash -e DATABASE_URL=postgres://{INSERT_USER}:{INSERT_PASSWORD}@postgres:5432/unleash unleashorg/unleash-server
```
## Test your server and create a sample API call