Docker-DocumentServer icon indicating copy to clipboard operation
Docker-DocumentServer copied to clipboard

can't run the docker compose

Open MuMu360121 opened this issue 1 year ago • 2 comments

This issue is unique.

  • [X] I have used the search tool and did not find an issue describing my bug.

Operating System of DocumentServer

Docker

Version information

lastest

Expected Behavior

`version: '2' services: onlyoffice-documentserver: build: context: . container_name: onlyoffice-documentserver depends_on: - onlyoffice-postgresql - onlyoffice-rabbitmq environment: - DB_TYPE=postgres - DB_HOST=onlyoffice-postgresql - DB_PORT=5432 - DB_NAME=onlyoffice - DB_USER=onlyoffice - AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq # Uncomment strings below to enable the JSON Web Token validation. #- JWT_ENABLED=true #- JWT_SECRET=secret #- JWT_HEADER=Authorization #- JWT_IN_BODY=true ports: - '8880:80' - '9443:443' stdin_open: true restart: always stop_grace_period: 60s volumes: - /share/CACHEDEV2_DATA/Container/onlyoffice/data:/var/www/onlyoffice/Data - /share/CACHEDEV2_DATA/Container/onlyoffice/log:/var/log/onlyoffice - /share/CACHEDEV2_DATA/Container/onlyoffice/cache:/var/lib/onlyoffice/documentserver/App_Data/cache/files - /share/CACHEDEV2_DATA/Container/onlyoffice/files:/var/www/onlyoffice/documentserver-example/public/files - /share/CACHEDEV2_DATA/Container/onlyoffice/fonts:/usr/share/fonts

onlyoffice-rabbitmq: container_name: onlyoffice-rabbitmq image: rabbitmq restart: always expose: - '5672'

onlyoffice-postgresql: container_name: onlyoffice-postgresql image: postgres:12 environment: - POSTGRES_DB=onlyoffice - POSTGRES_USER=onlyoffice - POSTGRES_HOST_AUTH_METHOD=trust restart: always expose: - '15432' volumes: - /share/CACHEDEV2_DATA/Container/onlyoffice/database:/var/lib/postgresql ` I used the docker compose like that,but it returns error: image

Actual Behavior

Reproduction Steps

No response

Additional information

No response

MuMu360121 avatar Aug 12 '24 15:08 MuMu360121

Because image for onlyoffice-documentserver is created from local Dockerfile context: .. You should rather clone this repo and run docker compose from command line.

pavlojs avatar Mar 12 '25 20:03 pavlojs

Hello @MuMu360121 ! Sorry for late reply!

Try modifying your docker-compose.yml by replacing the parameter build: context: . with image: onlyoffice/documentserver:latest to use the pre-built image from Docker Hub instead of building it yourself.

avdddd1111 avatar May 13 '25 12:05 avdddd1111

This issue was closed due to no response.

Rita-Bubnova avatar Jul 04 '25 10:07 Rita-Bubnova