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
!install/config.ini
docker-compose.yml
compose.yml
*.pot
*.mo
dist

View File

@ -34,8 +34,21 @@ You can also build the program using docker:
docker build --tag pooler .
```
And for deployment you can use docker-compose, just make sure you read the compose file
and place the configuration file and the pools to the right place:
And for deployment you can use docker-compose, here is an example configuration:
```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
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"