From bb701c46dd1b554df09936d989c489b7ec946627 Mon Sep 17 00:00:00 2001 From: ngn Date: Sun, 11 Aug 2024 01:10:51 +0300 Subject: [PATCH] update: move compose file to the README --- .gitignore | 2 ++ README.md | 17 +++++++++++++++-- docker-compose.yml | 10 ---------- 3 files changed, 17 insertions(+), 12 deletions(-) delete mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore index f0c00fb..90043d1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ config.ini !install/config.ini +docker-compose.yml +compose.yml *.pot *.mo dist diff --git a/README.md b/README.md index 38ac5fe..554618d 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 7a68fe9..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,10 +0,0 @@ -version: "3" - -services: - pooler: - build: - context: ./ - ports: - - "5858:5858/udp" - volumes: - - "./config.ini:/etc/pooler/config.ini"