name: jiaowu services: app: image: "${JIAOWU_IMAGE:-jiaowu:local}" build: context: . dockerfile: Dockerfile env_file: - .env ports: - "${JIAOWU_PORT:-8080}:8080" restart: unless-stopped init: true logging: driver: json-file options: max-size: "10m" max-file: "3" # 如果 .env 中的 SslCa=/etc/jiaowu/mysql-ca.pem,请把 CA 放到 # ./certs/mysql-ca.pem,并取消下面三行注释。 # volumes: # - type: bind # source: ./certs/mysql-ca.pem # target: /etc/jiaowu/mysql-ca.pem # read_only: true