[GH-ISSUE #758] can't run the docker compose #342

Closed
opened 2026-02-26 10:31:58 +03:00 by kerem · 3 comments
Owner

Originally created by @MuMu360121 on GitHub (Aug 12, 2024).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/758

This issue is unique.

  • 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

Originally created by @MuMu360121 on GitHub (Aug 12, 2024). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/758 ### This issue is unique. - [X] I have used the [search tool](https://github.com/ONLYOFFICE/DocumentServer/issues?q=) 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](https://github.com/user-attachments/assets/58655d26-3935-4f54-8ee6-3e224fa74c80) ### Actual Behavior - ### Reproduction Steps _No response_ ### Additional information _No response_
kerem 2026-02-26 10:31:58 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@pavlojs commented on GitHub (Mar 12, 2025):

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

<!-- gh-comment-id:2719076201 --> @pavlojs commented on GitHub (Mar 12, 2025): Because image for onlyoffice-documentserver is created from local Dockerfile `context: .`. You should rather clone this repo and run docker compose from command line.
Author
Owner

@avdddd1111 commented on GitHub (May 13, 2025):

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.

<!-- gh-comment-id:2876374925 --> @avdddd1111 commented on GitHub (May 13, 2025): 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.
Author
Owner

@Rita-Bubnova commented on GitHub (Jul 4, 2025):

This issue was closed due to no response.

<!-- gh-comment-id:3035462217 --> @Rita-Bubnova commented on GitHub (Jul 4, 2025): This issue was closed due to no response.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#342
No description provided.