add compose file (#612)

This commit is contained in:
Vladimir Budylnikov 2024-03-24 17:31:54 +04:00 committed by GitHub
parent 2e23bab4fa
commit d98520ef02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 17 additions and 0 deletions

View File

@ -7,3 +7,4 @@
!requirements-gpu.txt
!versioneer.py
!README.md
.env

1
.gitignore vendored
View File

@ -9,6 +9,7 @@ dist/
__pycache__/
*.so
*~≈
.env
.envrc
.python-version
.idea

15
docker-compose.yml Normal file
View File

@ -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'