forked from ONLYOFFICE/DocumentServer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (70 loc) · 1.94 KB
/
docker-compose.yml
File metadata and controls
75 lines (70 loc) · 1.94 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
services:
# PostgreSQL Database
postgres:
image: postgres:14
container_name: onlyoffice-postgres
environment:
POSTGRES_DB: onlyoffice
POSTGRES_USER: onlyoffice
POSTGRES_PASSWORD: onlyoffice
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- onlyoffice
# RabbitMQ Message Broker
rabbitmq:
image: rabbitmq:3-management
container_name: onlyoffice-rabbitmq
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
ports:
- "5672:5672"
- "15672:15672"
networks:
- onlyoffice
# DocumentServer (built from source)
documentserver:
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile.dev
container_name: onlyoffice-documentserver
depends_on:
- postgres
- rabbitmq
environment:
- DB_TYPE=postgres
- DB_HOST=postgres
- DB_PORT=5432
- DB_NAME=onlyoffice
- DB_USER=onlyoffice
- DB_PWD=onlyoffice
- AMQP_URI=amqp://guest:guest@rabbitmq
- NODE_ENV=development
- JWT_SECRET=local-dev-secret-change-in-production
volumes:
# Persistent data volumes (survives container restarts)
- optivise_documentserver_data:/var/www/onlyoffice
- optivise_documentserver_logs:/var/log/onlyoffice
- optivise_documentserver_lib:/var/lib/onlyoffice
# Note: Source code is now baked into the Docker image during build
# This fixes the version reset issue by ensuring consistent file timestamps
# To edit code, modify source files and rebuild the image with:
# docker-compose build --no-cache documentserver
# docker-compose up -d
ports:
- "9090:80"
- "9443:443"
networks:
- onlyoffice
networks:
onlyoffice:
driver: bridge
volumes:
postgres_data:
optivise_documentserver_data:
optivise_documentserver_logs:
optivise_documentserver_lib: