can't run the docker compose
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:
Actual Behavior
Reproduction Steps
No response
Additional information
No response
Because image for onlyoffice-documentserver is created from local Dockerfile context: .. You should rather clone this repo and run docker compose from command line.
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.
This issue was closed due to no response.