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'