mirror of
				https://gitlab.sectorq.eu/home/docker-compose.git
				synced 2025-10-31 02:21:10 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			85 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			YAML
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			85 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			YAML
		
	
	
		
			Executable File
		
	
	
	
	
| services:
 | |
|   onlyoffice-documentserver:
 | |
|     build:
 | |
|       context: .
 | |
|     image: onlyoffice/documentserver #[-de,-ee]
 | |
|     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
 | |
|     labels:
 | |
|       com.centurylinklabs.watchtower.enable: 'true'
 | |
|       wud.watch: true
 | |
|       wud.watch.digest: true
 | |
|       homepage.container: onlyoffice-documentserver
 | |
|       homepage.description:  OnlyOffice Document Server
 | |
|       homepage.group: Infrastructure
 | |
|       homepage.href: http://active.home.lan:8280/example
 | |
|       homepage.icon: onlyoffice.png
 | |
|       homepage.name: OnlyOffice Document Server
 | |
|       homepage.server: my-docker
 | |
|     ports:
 | |
|       - '8280:80'
 | |
|       - '22443:443'
 | |
|     healthcheck:
 | |
|       test: ["CMD", "curl", "-f", "http://localhost:8000/info/info.json"]
 | |
|       interval: 30s
 | |
|       retries: 5
 | |
|       start_period: 60s
 | |
|       timeout: 10s
 | |
|     stdin_open: true
 | |
|     restart: always
 | |
|     stop_grace_period: 60s
 | |
|     volumes:
 | |
|        - /var/www/onlyoffice/Data
 | |
|        - /var/log/onlyoffice
 | |
|        - /var/lib/onlyoffice/documentserver/App_Data/cache/files
 | |
|        - /var/www/onlyoffice/documentserver-example/public/files
 | |
|        - /usr/share/fonts
 | |
|        
 | |
|   onlyoffice-rabbitmq:
 | |
|     container_name: onlyoffice-rabbitmq
 | |
|     image: rabbitmq:3
 | |
|     restart: always
 | |
|     expose:
 | |
|       - '5672'
 | |
|     healthcheck:
 | |
|       test: ["CMD", "rabbitmq-diagnostics", "status"]
 | |
|       interval: 10s
 | |
|       retries: 3
 | |
|       start_period: 10s
 | |
|       timeout: 10s
 | |
| 
 | |
|   onlyoffice-postgresql:
 | |
|     container_name: onlyoffice-postgresql
 | |
|     image: postgres:15
 | |
|     environment:
 | |
|       - POSTGRES_DB=onlyoffice
 | |
|       - POSTGRES_USER=onlyoffice
 | |
|       - POSTGRES_HOST_AUTH_METHOD=trust
 | |
|     restart: always
 | |
|     expose:
 | |
|       - '5432'
 | |
|     volumes:
 | |
|       - postgresql_data:/var/lib/postgresql
 | |
|     healthcheck:
 | |
|       test: ["CMD-SHELL", "pg_isready -U onlyoffice"]
 | |
|       interval: 10s
 | |
|       retries: 3
 | |
|       start_period: 10s
 | |
|       timeout: 10s
 | |
| 
 | |
| volumes:
 | |
|   postgresql_data: |