Skip to content

Commit

Permalink
Fix formatting and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffvli committed Nov 21, 2022
1 parent 46187ac commit 68b1134
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,35 @@ Download the [latest desktop client](https://github.com/jeffvli/feishin/releases

### Docker Compose

**Warning:** Check the environment variable configuration before running the commands below.

1. Copy and rename [example.env](https://github.com/jeffvli/feishin/blob/dev/example.env) to `.env` and make any changes necessary
2. Run the compose file: `docker compose --file docker-compose.yml --env-file .env up`

### Docker

**Warning:** Check the environment variable configuration before running the commands below.

1. Run a postgres container: `docker run postgres:13 -p 5432:5432 -e POSTGRES_USER=admin -e POSTGRES_PASSWORD=admin -e POSTGRES_DB=feishin`
2. Run the server image: `docker run jeffvictorli/feishin:latest -p 8643:9321 -e APP_BASE_URL=http://192.168.0.1:8643 -e DATABASE_PORT=5432 -e DATABASE_URL=postgresql://admin:admin@localhost:5432/feishin?schema=public -e TOKEN_SECRET=secret -e TOKEN_EXPIRATION=5m -e TOKEN_REFRESH_EXPIRATION=90d`
**Run a postgres database container:**

```
docker run postgres:13 \
-p 5432:5432 \
-e POSTGRES_USER=admin \
-e POSTGRES_PASSWORD=admin \
-e POSTGRES_DB=feishin
```

**Run the Feishin server container:**

```
docker run jeffvictorli/feishin:latest \
-p 8643:9321 \
-e APP_BASE_URL=http://192.168.0.1:8643 \
-e DATABASE_PORT=5432 \
-e DATABASE_URL=postgresql://admin:admin@localhost:5432/feishin?schema=public \
-e TOKEN_SECRET=secret
```

**Docker Environment Variables**

Expand Down

0 comments on commit 68b1134

Please sign in to comment.