diff --git a/.dockerignore b/.dockerignore index a7e35bd1..ec7807b6 100644 --- a/.dockerignore +++ b/.dockerignore @@ -7,3 +7,4 @@ !requirements-gpu.txt !versioneer.py !README.md +.env diff --git a/.gitignore b/.gitignore index 0305e3ff..803ad0c8 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 00000000..f862b094 --- /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'