Skip to content

Commit

Permalink
chore: move Proxying via nginx up and minor additions
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPandir committed Oct 14, 2024
1 parent 16403bb commit eb22297
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ To run the project in dev mode in docker compose run:
docker compose -f compose.dev.app.yaml up -d
```

## Run the database in docker
# Run the database in docker

If you only need to run the database:
```shell
docker compose -f compose.dev.yaml run -d postgres
```
Expand All @@ -55,6 +56,17 @@ To change the PostgreSQL port, use the following command structure:
docker compose -f compose.dev.yaml run -d -p <port>:5432 postgres
```

# Proxying via nginx

Proxying will allow you to test 7TV emotes as well as proxy request parameters.

If you use [devcontainer](<#develop-in-devcontainer>) or [run the project in docker](<#run-project-in-docker>) this will already work, you don't need to do anything.

If you run the project locally, you need to run the docker compose file `compose.dev.yaml` and also uncomment the variables in the `.env` file:
```shell
docker compose -f compose.dev.yaml run -d nginx
```

# Run locally

> [!IMPORTANT]
Expand Down Expand Up @@ -101,17 +113,6 @@ To connect to the PostgreSQL database, use the following credentials:
> [!TIP]
> If you use Visual Studio Code, consider installing the [PostgreSQL extension](https://marketplace.visualstudio.com/items?itemName=ckolkman.vscode-postgres) for easier database management.

# Proxying via nginx

Proxying will allow you to test 7TV emotes as well as proxy request parameters.

If you use [devcontainer](<#develop-in-devcontainer>) or [run the project in docker](<#run-project-in-docker>) this will already work, you don't need to do anything.

If you run the project locally, you need to run the docker compose file `compose.dev.yaml` and also uncomment the variables in the `.env` file:
```shell
docker compose -f compose.dev.yaml run -d
```

# Ports

- http://localhost:3000 - admin panel backend
Expand All @@ -124,4 +125,3 @@ docker compose -f compose.dev.yaml run -d
```shell
pnpm run lint
```

0 comments on commit eb22297

Please sign in to comment.