You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12306/docker-compose.yml

33 lines
808 B

version: "3"
services:
#抢票服务
ticket:
build:
context: .
dockerfile: ./Dockerfile37
image: ticket:v1.2.004
environment:
- PYTHONUNBUFFERED=1
- CAPTCHALOCAL=1
container_name: ticket
depends_on:
- captcha
networks:
- 12306network
restart: on-failure
#打码服务器
captcha:
image: yinaoxiong/12306_code_server:amd64 #请根据需要修改image
environment:
- WORKERS=1 #gunicorn works 默认为1可以根据服务器配置自行调整
- PYTHONUNBUFFERED=1
container_name: captcha
networks:
- 12306network
restart: unless-stopped
networks:
12306network:
driver: bridge