1234567891011121314151617181920212223242526272829 |
- version: "3" # docker版本对应的docker-compose版本
- services:
- captcha:
- container_name: pycaptcha
- image: pycaptcha:latest
- volumes:
- - /mnt/pycaptcha:/mnt
- # network_mode: "host"
- ports:
- - "2119:2119"
- restart: always
- ulimits:
- core: 0 # 禁止生成core文件
- tmpfs:
- - /tmp
- env_file:
- - ./web.env
- privileged: true
- shm_size: 10GB
- logging:
- driver: "json-file"
- options:
- max-size: "500M"
- max-file: "1"
- deploy:
- resources:
- limits:
- memory: 10G
- command: 'python3 -m gunicorn -c gunicorn.conf.py captcha_server:app'
|