更改docker
Build and publish Jiaowu packages and container image / Test, package and publish (push) Failing after 21m12s

This commit is contained in:
2026-07-25 21:26:49 +08:00 Unverified
parent 2e940f7f30
commit eb13465b49
5 changed files with 95 additions and 2 deletions
+27
View File
@@ -0,0 +1,27 @@
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