2016-07-07 16:13:26 +02:00
|
|
|
version: '2'
|
|
|
|
services:
|
2016-07-11 10:47:22 +02:00
|
|
|
onlyoffice-documentserver-data:
|
|
|
|
container_name: onlyoffice-documentserver-data
|
2016-07-07 16:13:26 +02:00
|
|
|
image: onlyoffice/4testing-documentserver:latest
|
|
|
|
environment:
|
2016-07-11 12:53:45 +02:00
|
|
|
- ONLYOFFICE_DATA_CONTAINER=true
|
2016-08-25 18:52:14 +02:00
|
|
|
- POSTGRESQL_SERVER_HOST=onlyoffice-postgers
|
|
|
|
- POSTGRESQL_SERVER_PORT=5432
|
|
|
|
- POSTGRESQL_SERVER_DB_NAME=onlyoffice
|
|
|
|
- POSTGRESQL_SERVER_USER=root
|
2016-07-07 16:13:26 +02:00
|
|
|
- RABBITMQ_SERVER_HOST=onlyoffice-rabbitmq
|
|
|
|
- RABBITMQ_SERVER_USER=guest
|
|
|
|
- RABBITMQ_SERVER_PASS=guest
|
|
|
|
- REDIS_SERVER_HOST=onlyoffice-redis
|
|
|
|
- REDIS_SERVER_PORT=6379
|
2016-07-11 10:47:22 +02:00
|
|
|
stdin_open: true
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- onlyoffice
|
|
|
|
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-documentserver:
|
|
|
|
image: onlyoffice/4testing-documentserver:latest
|
|
|
|
depends_on:
|
|
|
|
- onlyoffice-documentserver-data
|
2016-08-25 18:52:14 +02:00
|
|
|
- onlyoffice-postgresql
|
2016-07-11 10:47:22 +02:00
|
|
|
- onlyoffice-redis
|
|
|
|
- onlyoffice-rabbitmq
|
|
|
|
environment:
|
2016-07-20 17:56:20 +02:00
|
|
|
- ONLYOFFICE_DATA_CONTAINER_HOST=onlyoffice-documentserver-data
|
2016-07-12 14:37:09 +02:00
|
|
|
- BALANCE=uri depth 3
|
2016-08-17 14:54:19 +02:00
|
|
|
- EXCLUDE_PORTS=443
|
2016-07-15 16:14:18 +02:00
|
|
|
- HTTP_CHECK=GET /healthcheck
|
|
|
|
- EXTRA_SETTINGS=http-check expect string true
|
2016-07-15 15:31:53 +02:00
|
|
|
# Uncomment the string below to redirect HTTP request to HTTPS request.
|
|
|
|
#- FORCE_SSL=true
|
2016-07-07 16:13:26 +02:00
|
|
|
stdin_open: true
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- onlyoffice
|
|
|
|
expose:
|
|
|
|
- '80'
|
2016-07-11 10:47:22 +02:00
|
|
|
volumes_from:
|
2016-07-11 12:52:09 +02:00
|
|
|
- onlyoffice-documentserver-data
|
2016-07-07 16:13:26 +02:00
|
|
|
|
|
|
|
onlyoffice-haproxy:
|
|
|
|
container_name: onlyoffice-haproxy
|
2016-07-15 15:31:53 +02:00
|
|
|
image: dockercloud/haproxy:1.5.1
|
2016-07-07 16:13:26 +02:00
|
|
|
depends_on:
|
2016-07-11 10:47:22 +02:00
|
|
|
- onlyoffice-documentserver
|
2016-07-07 16:13:26 +02:00
|
|
|
environment:
|
2016-07-12 14:07:52 +02:00
|
|
|
- MODE=http
|
2016-07-15 15:31:53 +02:00
|
|
|
# Uncomment the string below to specify the path of ssl certificates
|
|
|
|
#- CERT_FOLDER=/certs/
|
2016-07-07 16:13:26 +02:00
|
|
|
stdin_open: true
|
|
|
|
links:
|
2016-07-11 10:47:22 +02:00
|
|
|
- onlyoffice-documentserver
|
2016-07-07 16:13:26 +02:00
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
2016-07-15 15:31:53 +02:00
|
|
|
# Uncomment the string below to map a ssl certificate from host
|
|
|
|
# to the proxy container
|
|
|
|
#- /app/onlyoffice/DocumentServer/data/certs/onlyoffice.pem:/certs/cert1.pem
|
2016-07-07 16:13:26 +02:00
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- onlyoffice
|
|
|
|
ports:
|
|
|
|
- '80:80'
|
|
|
|
- '443:443'
|
|
|
|
- '1936:1936'
|
|
|
|
|
|
|
|
onlyoffice-redis:
|
|
|
|
container_name: onlyoffice-redis
|
|
|
|
image: redis
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- onlyoffice
|
|
|
|
expose:
|
|
|
|
- '6379'
|
|
|
|
|
|
|
|
onlyoffice-rabbitmq:
|
|
|
|
container_name: onlyoffice-rabbitmq
|
|
|
|
image: rabbitmq
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- onlyoffice
|
|
|
|
expose:
|
|
|
|
- '5672'
|
|
|
|
|
2016-08-25 18:52:14 +02:00
|
|
|
onlyoffice-postgresql:
|
|
|
|
container_name: onlyoffice-postgresql
|
|
|
|
image: postgres:9.5
|
2016-07-07 16:13:26 +02:00
|
|
|
environment:
|
2016-08-25 18:52:14 +02:00
|
|
|
- POSTGRES_DB=onlyoffice
|
|
|
|
- POSTGRES_USER=onlyoffice
|
2016-07-07 16:13:26 +02:00
|
|
|
networks:
|
|
|
|
- onlyoffice
|
|
|
|
restart: always
|
|
|
|
expose:
|
2016-08-25 18:52:14 +02:00
|
|
|
- '5432'
|
2016-07-07 16:13:26 +02:00
|
|
|
volumes:
|
2016-08-25 18:52:14 +02:00
|
|
|
- postgresql_data:/var/lib/postgresql
|
2016-07-07 16:13:26 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
onlyoffice:
|
|
|
|
driver: 'bridge'
|
|
|
|
|
|
|
|
volumes:
|
2016-08-25 18:52:14 +02:00
|
|
|
postgresql_data:
|