Closed xqa closed 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的数据也挂载当前目录方便管理。
还发现个问题,自架版能在app内收到消息,但没有系统通知
经测试,两个版本app共存就会不通知,只挂载api和push目录能行
https://github.com/easychen/pushdeer/blob/d15892727a058462b4b90225face4dc17b0ff1ed/docker-compose.self-hosted.yml#L28 这里挂载数据卷直接把整个项目挂载进去容器吗?
我看dockerfile好像只用到了两个文件目录,能不能只挂载这两个呢,并且mariadb的数据也挂载当前目录方便管理。