ONLYOFFICE Workspace using Docker Compose
时间: 2024-01-10 10:02:22 浏览: 157
To set up ONLYOFFICE Workspace using Docker Compose, you can follow these steps:
1. Install Docker and Docker Compose on your machine if you haven't already done so.
2. Create a new directory for your ONLYOFFICE Workspace configuration files.
3. Inside the directory, create a `docker-compose.yml` file and open it in a text editor.
4. Add the following content to your `docker-compose.yml` file:
```
version: '3'
services:
onlyoffice:
image: onlyoffice/workspace:latest
ports:
- 80:80
- 443:443
environment:
- JWT_ENABLED=true
- JWT_SECRET=YOUR_JWT_SECRET
- LETSENCRYPT_HOST=your-domain.com
- LETSENCRYPT_EMAIL=your-email@example.com
volumes:
- ./data:/var/www/onlyoffice/Data
- ./logs:/var/log/onlyoffice
- ./nginx:/etc/nginx/sites-available
```
Replace `YOUR_JWT_SECRET` with your own secret key. Also, update `your-domain.com` with your domain name and `your-email@example.com` with your email address.
5. Save the `docker-compose.yml` file.
6. Create the necessary directories for volumes by running the following commands in your terminal:
```
mkdir data
mkdir logs
mkdir nginx
```
7. Start ONLYOFFICE Workspace by running the following command in the same directory as your `docker-compose.yml` file:
```
docker-compose up -d
```
8. Wait for the containers to start up. You can check the status by running `docker-compose ps`.
9. Once the containers are up and running, you should be able to access ONLYOFFICE Workspace by visiting your domain name in a web browser.
That's it! You now have ONLYOFFICE Workspace set up using Docker Compose. Remember to configure any necessary DNS settings for your domain to point to the server running Docker.
阅读全文