Docker-DocumentServer/docker-compose.yml

118 lines
3.1 KiB
YAML
Raw Normal View History

version: '2'
services:
onlyoffice-documentserver-data:
container_name: onlyoffice-documentserver-data
2016-09-09 10:49:14 +02:00
image: onlyoffice/documentserver:latest
environment:
- ONLYOFFICE_DATA_CONTAINER=true
2016-08-26 14:10:53 +02:00
- POSTGRESQL_SERVER_HOST=onlyoffice-postgresql
2016-08-25 18:52:14 +02:00
- POSTGRESQL_SERVER_PORT=5432
- POSTGRESQL_SERVER_DB_NAME=onlyoffice
2016-08-26 14:20:13 +02:00
- POSTGRESQL_SERVER_USER=onlyoffice
2019-02-14 13:19:13 +01:00
- AMQP_SERVER_URL=amqp://guest:guest@onlyoffice-rabbitmq
- REDIS_SERVER_HOST=onlyoffice-redis
- REDIS_SERVER_PORT=6379
2019-09-24 11:55:24 +02:00
# Uncomment strings below to enable the JSON Web Token validation.
#- JWT_ENABLED=true
#- JWT_SECRET=secret
#- JWT_HEADER=Authorization
stdin_open: true
restart: always
networks:
- onlyoffice
volumes:
2018-11-02 09:53:06 +01:00
- /etc/onlyoffice
- /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:
2016-09-12 13:09:25 +02:00
image: onlyoffice/documentserver:latest
depends_on:
- onlyoffice-documentserver-data
2016-08-25 18:52:14 +02:00
- onlyoffice-postgresql
- onlyoffice-redis
- onlyoffice-rabbitmq
environment:
- 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
- HTTP_CHECK=GET /healthcheck
- EXTRA_SETTINGS=http-check expect string true
# Uncomment the string below to redirect HTTP request to HTTPS request.
#- FORCE_SSL=true
stdin_open: true
restart: always
networks:
- onlyoffice
expose:
- '80'
volumes_from:
- onlyoffice-documentserver-data
onlyoffice-haproxy:
container_name: onlyoffice-haproxy
image: dockercloud/haproxy:1.5.1
depends_on:
- onlyoffice-documentserver
environment:
2016-07-12 14:07:52 +02:00
- MODE=http
# Uncomment the string below to specify the path of ssl certificates
#- CERT_FOLDER=/certs/
stdin_open: true
links:
- onlyoffice-documentserver
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# 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
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
environment:
2016-08-25 18:52:14 +02:00
- POSTGRES_DB=onlyoffice
- POSTGRES_USER=onlyoffice
networks:
- onlyoffice
restart: always
expose:
2016-08-25 18:52:14 +02:00
- '5432'
volumes:
2016-08-25 18:52:14 +02:00
- postgresql_data:/var/lib/postgresql
networks:
onlyoffice:
driver: 'bridge'
volumes:
2016-08-25 18:52:14 +02:00
postgresql_data: