From 6a577e7bdd3e5f8f38a767b0881ae9d74368eaeb Mon Sep 17 00:00:00 2001 From: xiaoz Date: Fri, 16 Jan 2026 12:43:41 +0800 Subject: [PATCH] update config --- 1panel.yaml | 53 ++++++++++++++++++++++++++++++++++ bt.yaml | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++ compose.yaml | 8 +++++- 3 files changed, 140 insertions(+), 1 deletion(-) create mode 100644 1panel.yaml create mode 100644 bt.yaml diff --git a/1panel.yaml b/1panel.yaml new file mode 100644 index 0000000..472948d --- /dev/null +++ b/1panel.yaml @@ -0,0 +1,53 @@ +services: + zpic: + container_name: zpic + image: pub.tcp.mk/helloz/zpic + networks: + - 1panel-network + ports: + - "2080:2080" + volumes: + - ./data:/opt/zpic/app/data + env_file: + - 1panel.env + # 环境变量 + environment: + - WORKERS=2 + restart: always + + nsfw: + container_name: nsfw + image: pub.tcp.mk/helloz/nsfw + networks: + - 1panel-network + ports: + - "6086:6086" + env_file: + - 1panel.env + # 环境变量 + environment: + - TOKEN=${NSFW_TOKEN} + restart: always + + imgproxy: + image: pub.tcp.mk/helloz/imgproxy + container_name: imgproxy + networks: + - 1panel-network + ports: + - "8088:8080" + env_file: + - 1panel.env + environment: + - IMGPROXY_KEY=${IMGPROXY_KEY} + - IMGPROXY_SALT=${IMGPROXY_SALT} + #- IMGPROXY_ALLOWED_SOURCES=https://your-bucket.s3.amazonaws.com,https://cdn.yoursite.com + - IMGPROXY_QUALITY=80 + - IMGPROXY_AUTO_ROTATE=true + - IMGPROXY_AUTO_WEBP=true + - IMGPROXY_MAX_SRC_FILE_SIZE=10485760 + restart: unless-stopped + +networks: + 1panel-network: + external: true \ No newline at end of file diff --git a/bt.yaml b/bt.yaml new file mode 100644 index 0000000..08d064b --- /dev/null +++ b/bt.yaml @@ -0,0 +1,80 @@ +services: + zpic: + container_name: zpic + image: pub.tcp.mk/helloz/zpic + networks: + - baota_net + ports: + - "2080:2080" + volumes: + - ${APP_PATH}/data:/opt/zpic/app/data + env_file: + - .env + # 环境变量 + environment: + - WORKERS=2 + restart: always + + postgres: + container_name: postgres + image: docker.1ms.run/postgres:17-bookworm + restart: unless-stopped + env_file: + - .env + environment: + - POSTGRES_DB=${DB_NAME} + - POSTGRES_USER=${DB_USER} + - POSTGRES_PASSWORD=${DB_PASSWORD} + volumes: + - ${APP_PATH}/pgsql/data:/var/lib/postgresql/data + - ${APP_PATH}/pgsql/postgres.conf:/etc/postgresql/postgresql.conf:ro + command: ["postgres", "-c", "config_file=/etc/postgresql/postgresql.conf"] + networks: + - baota_net + + redis: + image: docker.1ms.run/redis:8-alpine + container_name: redis + networks: + - baota_net + restart: always + volumes: + - ${APP_PATH}/redis/data:/data + - ${APP_PATH}/redis/redis.conf:/etc/redis/redis.conf + command: ["redis-server", "/etc/redis/redis.conf"] + + nsfw: + container_name: nsfw + image: pub.tcp.mk/helloz/nsfw + networks: + - baota_net + ports: + - "6086:6086" + env_file: + - .env + # 环境变量 + environment: + - TOKEN=${NSFW_TOKEN} + restart: always + + imgproxy: + image: pub.tcp.mk/helloz/imgproxy + container_name: imgproxy + networks: + - baota_net + env_file: + - .env + ports: + - "8088:8080" + environment: + - IMGPROXY_KEY=${IMGPROXY_KEY} + - IMGPROXY_SALT=${IMGPROXY_SALT} + - IMGPROXY_QUALITY=80 + - IMGPROXY_AUTO_ROTATE=true + - IMGPROXY_AUTO_WEBP=true + - IMGPROXY_MAX_SRC_FILE_SIZE=10485760 + restart: unless-stopped + +networks: + baota_net: + driver: bridge \ No newline at end of file diff --git a/compose.yaml b/compose.yaml index 3d24132..f9b5419 100644 --- a/compose.yaml +++ b/compose.yaml @@ -22,6 +22,8 @@ services: container_name: postgres image: postgres:17-bookworm restart: unless-stopped + env_file: + - .env environment: - POSTGRES_DB=${DB_NAME} - POSTGRES_USER=${DB_USER} @@ -56,6 +58,8 @@ services: ports: - "6086:6086" # 环境变量 + env_file: + - .env environment: - TOKEN=${NSFW_TOKEN} restart: always @@ -66,7 +70,9 @@ services: networks: - mynet ports: - - "8080:8080" + - "8088:8080" + env_file: + - .env environment: - IMGPROXY_KEY=${IMGPROXY_KEY} - IMGPROXY_SALT=${IMGPROXY_SALT}