Skip to content

群晖 Docker Compose 安装后第二天不能上传附件,求大佬帮忙! #62

Description

@fyngd

配置平台:群晖
安装方式:Docker Compose
安装脚本:
services:
typecho: # Typecho 博客服务
image: joyqi/typecho:nightly-php8.2-apache # 官方 Apache 镜像
container_name: typecho
ports:
- "8383:80" # 宿主机 8080 -> 容器 80
environment:
TZ: Asia/Shanghai # 设置时区为上海
volumes:
- ./app/usr:/app/usr # 当前目录存放 Typecho 文件
depends_on:
- db # 依赖数据库
restart: always # 自动重启策略

db: # 数据库服务
image: mariadb:10.6 # MariaDB 镜像
container_name: typecho-db
environment:
MYSQL_ROOT_PASSWORD: xxxxxxx # 数据库 root 密码(请修改)
MYSQL_DATABASE: typecho # 数据库名
MYSQL_USER: admin # 数据库用户名
MYSQL_PASSWORD: xxxxxxx # 数据库密码(请修改)
TZ: Asia/Shanghai # 时区
volumes:
- ./db:/var/lib/mysql # 数据库数据存放当前目录
restart: always

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions