update: move compose file to the README
This commit is contained in:
parent
a93feb77d0
commit
bb701c46dd
2
.gitignore
vendored
2
.gitignore
vendored
@ -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
|
||||||
|
17
README.md
17
README.md
@ -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
|
||||||
```
|
```
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
version: "3"
|
|
||||||
|
|
||||||
services:
|
|
||||||
pooler:
|
|
||||||
build:
|
|
||||||
context: ./
|
|
||||||
ports:
|
|
||||||
- "5858:5858/udp"
|
|
||||||
volumes:
|
|
||||||
- "./config.ini:/etc/pooler/config.ini"
|
|
Loading…
Reference in New Issue
Block a user