easychen / pushdeer

开放源码的无App推送服务,iOS14+扫码即用。亦支持快应用/iOS和Mac客户端、Android客户端、自制设备
Other
4.62k stars 468 forks source link

自架服务器端问题 #153

Closed xqa closed 2 years ago

xqa commented 2 years ago

https://github.com/easychen/pushdeer/blob/d15892727a058462b4b90225face4dc17b0ff1ed/docker-compose.self-hosted.yml#L28 这里挂载数据卷直接把整个项目挂载进去容器吗?

version: '2.1'
services:
  mariadb:
    image: 'mariadb:10.5.8-focal'
    healthcheck:
      test: ["CMD", "mysqladmin", "ping", "--silent","--password=$$MYSQL_ROOT_PASSWORD"]
      timeout: 10s
      retries: 3
    volumes:
      - './mariadb_data:/var/lib/mysql'
    environment:
      - MYSQL_ROOT_PASSWORD=theVeryp@ssw0rd
      - MYSQL_DATABASE=pushdeer
    ports:
      - '3306:3306' 
  redis: 
    image: 'bitnami/redis:6.0.16'
    healthcheck:
      test: ["CMD", "redis-cli","ping"]
    environment:
      - ALLOW_EMPTY_PASSWORD=yes 
  app:
    #image: 'webdevops/php-apache:8.0-alpine'
    build: './docker/web/'
    ports:
      - '8800:80'
    volumes:
      - './api:/app/api'
      - './push:/app/push'
    depends_on:
      mariadb:
        condition: service_healthy
      redis:
        condition: service_healthy
    environment:
      - DB_HOST=mariadb
      - DB_PORT=3306
      - DB_USERNAME=root
      - DB_DATABASE=pushdeer
      - DB_PASSWORD=theVeryp@ssw0rd

我看dockerfile好像只用到了两个文件目录,能不能只挂载这两个呢,并且mariadb的数据也挂载当前目录方便管理。

xqa commented 2 years ago

还发现个问题,自架版能在app内收到消息,但没有系统通知

xqa commented 2 years ago

经测试,两个版本app共存就会不通知,只挂载api和push目录能行