-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (43 loc) · 1.41 KB
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (43 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# ScienceStudio - OnlyOffice Document Server
#
# Usage:
# docker-compose up -d # Start OnlyOffice
# docker-compose down # Stop OnlyOffice
#
# OnlyOffice will be available at http://localhost:8080
# The VS Code extension runs its own file server on port 8081
#
# For development, you can also run with:
# docker-compose up # See logs in terminal
services:
onlyoffice:
image: onlyoffice/documentserver:latest
container_name: sciencestudio-onlyoffice
restart: unless-stopped
ports:
- "8080:80"
environment:
# Disable JWT for local development (enable in production!)
- JWT_ENABLED=false
# Allow all domains for embedding (restrict in production)
- WOPI_ENABLED=false
# CRITICAL: Allow private IP addresses (needed for host.docker.internal)
# This allows OnlyOffice to download files from the local file server
- ALLOW_PRIVATE_IP_ADDRESS=true
- ALLOW_META_IP_ADDRESS=true
volumes:
# Persist document data
- onlyoffice_data:/var/www/onlyoffice/Data
- onlyoffice_logs:/var/log/onlyoffice
extra_hosts:
# Allow container to access host machine (for file server on host)
- "host.docker.internal:host-gateway"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/healthcheck"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
volumes:
onlyoffice_data:
onlyoffice_logs: