Skip to content

docker部署网页版,其中olive-server和olive-portal无法启动 #109

@IndigoMagic

Description

@IndigoMagic

安装过程:
image
安装环境:群晖NAS
其中olive-server错误日志:
2022-11-07T10:09:45.535088668Z stdout {"level":"error","ts":"2022-11-07T18:09:45.534+0800","caller":"command/server.go:108","msg":"startup","service":"OLIVE-API","ERROR":"maxprocs: open /sys/fs/cgroup/cpu/cpu.cfs_quota_us: no such file or directory"}
olive-portal错误日志:
2022-11-07T10:10:06.941984680Z | stderr | nginx: [emerg] host not found in upstream "olive-server" in /etc/nginx/conf.d/default.conf:11
2022-11-07T10:10:06.941796497Z | stderr | 2022/11/07 10:10:06 [emerg] 1#1: host not found in upstream "olive-server" in /etc/nginx/conf.d/default.conf:11

docker-compose.yaml文件(改了端口号是因为端口被占用):

version: "3.8"

services:
  olive-db:
    image: postgres:14-alpine
    container_name: olive-db
    restart: always
    ports:
      - 127.0.0.1:8432:8432
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
    volumes:
      - ./pgdata:/var/lib/postgresql/data
    networks:
      - olive-network

  olive-server:
    image: luxcgo/olive:latest
    container_name: olive-server
    depends_on:
      - olive-db
    ports:
      - 127.0.0.1:3000:3000
      - 127.0.0.1:4000:4000
    command:
      [
        "./olive",
        "server",
        "--db-host",
        "olive-db:8432",
        "-l",
        "/downloads",
        "-s",
        "/downloads",
      ]
    volumes:
      - "/etc/timezone:/etc/timezone:ro"
      - "/etc/localtime:/etc/localtime:ro"
      - ./downloads:/downloads
      - ./config:/config
    networks:
      - olive-network

  olive-portal:
    image: luxcgo/olive-portal:latest
    container_name: olive-portal
    depends_on:
      - olive-server
    ports:
      - "8080:8080"
    # volumes:
    #   - ./config/default.conf:/etc/nginx/conf.d/default.conf
    networks:
      - olive-network

networks:
  olive-network:

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