update: move compose file to the README

This commit is contained in:
ngn 2024-08-11 01:10:51 +03:00
parent a93feb77d0
commit bb701c46dd
3 changed files with 17 additions and 12 deletions

2
.gitignore vendored
View File

@ -1,5 +1,7 @@
config.ini config.ini
!install/config.ini !install/config.ini
docker-compose.yml
compose.yml
*.pot *.pot
*.mo *.mo
dist dist

View File

@ -34,8 +34,21 @@ You can also build the program using docker:
docker build --tag pooler . docker build --tag pooler .
``` ```
And for deployment you can use docker-compose, just make sure you read the compose file And for deployment you can use docker-compose, here is an example configuration:
and place the configuration file and the pools to the right place: ```yaml
version: "3"
services:
pooler:
build:
context: ./
ports:
- "5858:5858/tcp"
volumes:
- "./config.ini:/etc/pooler/config.ini"
```
Just make sure you read the compose file and place the configuration file and the pools
to the right place:
```bash ```bash
docker-compose up -d docker-compose up -d
``` ```

View File

@ -1,10 +0,0 @@
version: "3"
services:
pooler:
build:
context: ./
ports:
- "5858:5858/udp"
volumes:
- "./config.ini:/etc/pooler/config.ini"