From d98520ef02b720b2b819dd911ccfce19e872bb54 Mon Sep 17 00:00:00 2001 From: Vladimir Budylnikov Date: Sun, 24 Mar 2024 17:31:54 +0400 Subject: [PATCH] add compose file (#612) --- .dockerignore | 1 + .gitignore | 1 + docker-compose.yml | 15 +++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 docker-compose.yml diff --git a/.dockerignore b/.dockerignore index a7e35bd..ec7807b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -7,3 +7,4 @@ !requirements-gpu.txt !versioneer.py !README.md +.env diff --git a/.gitignore b/.gitignore index 0305e3f..803ad0c 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ dist/ __pycache__/ *.so *~≈ +.env .envrc .python-version .idea diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..f862b09 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,15 @@ +--- +# You can set variables in .env file in root folder +# +# PUBLIC_PORT=7000:7000 +# REPLICAS_COUNT=1 + +services: + app: + build: . + command: ["s"] + deploy: + replicas: ${REPLICAS_COUNT:-1} + ports: + - ${PUBLIC_PORT:-7000:7000} +version: '3'