31 lines
731 B
YAML
31 lines
731 B
YAML
version: "3"
|
|
|
|
services:
|
|
simplylab:
|
|
build:
|
|
dockerfile: Dockerfile
|
|
context: .
|
|
restart: always
|
|
command: gunicorn simplylab.main:app --workers=4 --worker-class=uvicorn.workers.UvicornWorker --bind=0.0.0.0:8000 --worker-tmp-dir /dev/shm --log-level=debug
|
|
environment:
|
|
TZ: "Asia/Shanghai"
|
|
VIRTUAL_HOST: ${VIRTUAL_HOST}
|
|
VIRTUAL_PORT: ${VIRTUAL_PORT}
|
|
LETSENCRYPT_HOST: ${LETSENCRYPT_HOST}
|
|
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
|
|
expose:
|
|
- 8000
|
|
tty: true
|
|
stdin_open: true
|
|
networks:
|
|
- simplylab
|
|
- nginx-proxy
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "2m"
|
|
max-file: "10"
|
|
|
|
networks:
|
|
simplylab:
|
|
nginx-proxy: |