mirror of
https://github.com/ONLYOFFICE/Docker-Docs.git
synced 2025-04-18 15:04:02 +03:00
This reverts commit 133630ebd10f70dccf1660a3939796728af68f35. Build was disabled due to the absence of one of the architectures in the statsd image. Now arm64 present, so metrics can be enabled again https://github.com/statsd/statsd/pull/753 Co-authored-by: danilapog <danil.titarenko@onlyoffice.com> Co-committed-by: danilapog <danil.titarenko@onlyoffice.com>
141 lines
3.0 KiB
YAML
141 lines
3.0 KiB
YAML
version: '3.8'
|
|
services:
|
|
proxy:
|
|
container_name: proxy
|
|
build:
|
|
context: .
|
|
dockerfile: ${DOCKERFILE}
|
|
target: proxy
|
|
image: ${ACCOUNT_NAME}/${PREFIX_NAME}-proxy${PRODUCT_EDITION}:${DOCKER_TAG}
|
|
environment:
|
|
- DOCSERVICE_HOST_PORT=docservice:8000
|
|
- EXAMPLE_HOST_PORT=example:3000
|
|
stdin_open: true
|
|
restart: always
|
|
ports:
|
|
- '80:8888'
|
|
volumes:
|
|
- common_data:/var/lib/${COMPANY_NAME}
|
|
|
|
docservice:
|
|
build:
|
|
context: .
|
|
dockerfile: ${DOCKERFILE}
|
|
target: docservice
|
|
image: ${ACCOUNT_NAME}/${PREFIX_NAME}-docservice${PRODUCT_EDITION}:${DOCKER_TAG}
|
|
deploy:
|
|
replicas: 1
|
|
environment:
|
|
- DB_HOST=postgresql
|
|
- DB_NAME=mydb
|
|
- DB_USER=myuser
|
|
- REDIST_SERVER_HOST=redis
|
|
- AMQP_HOST=rabbitmq
|
|
- METRICS_HOST=metrics
|
|
- METRICS_ENABLED=true
|
|
- WOPI_ENABLED=false
|
|
- JWT_ENABLED=${JWT_ENABLED}
|
|
- JWT_HEADER=${JWT_HEADER}
|
|
- JWT_SECRET=${JWT_SECRET}
|
|
depends_on:
|
|
- proxy
|
|
- postgresql
|
|
- redis
|
|
- rabbitmq
|
|
- metrics
|
|
stdin_open: true
|
|
restart: always
|
|
expose:
|
|
- '8000'
|
|
volumes:
|
|
- common_data:/var/lib/${COMPANY_NAME}
|
|
|
|
converter:
|
|
build:
|
|
context: .
|
|
dockerfile: ${DOCKERFILE}
|
|
target: converter
|
|
image: ${ACCOUNT_NAME}/${PREFIX_NAME}-converter${PRODUCT_EDITION}:${DOCKER_TAG}
|
|
deploy:
|
|
replicas: 2
|
|
environment:
|
|
- DB_HOST=postgresql
|
|
- DB_NAME=mydb
|
|
- DB_USER=myuser
|
|
- REDIST_SERVER_HOST=redis
|
|
- AMQP_HOST=rabbitmq
|
|
- METRICS_HOST=metrics
|
|
- METRICS_ENABLED=true
|
|
- JWT_ENABLED=${JWT_ENABLED}
|
|
- JWT_HEADER=${JWT_HEADER}
|
|
- JWT_SECRET=${JWT_SECRET}
|
|
depends_on:
|
|
- proxy
|
|
- postgresql
|
|
- redis
|
|
- rabbitmq
|
|
- metrics
|
|
stdin_open: true
|
|
restart: always
|
|
volumes:
|
|
- common_data:/var/lib/${COMPANY_NAME}
|
|
|
|
metrics:
|
|
build:
|
|
context: .
|
|
dockerfile: ${DOCKERFILE}
|
|
target: metrics
|
|
container_name: metrics
|
|
expose:
|
|
- '8125'
|
|
- '8126'
|
|
|
|
example:
|
|
image: ${COMPANY_NAME}/${PREFIX_NAME}-example:${DOCKER_TAG}
|
|
container_name: example
|
|
environment:
|
|
- JWT_ENABLED=${JWT_ENABLED}
|
|
- JWT_HEADER=${JWT_HEADER}
|
|
- JWT_SECRET=${JWT_SECRET}
|
|
# Uncomment the line below and enter your ONLYOFFICE Docs address
|
|
# - DS_URL=http://onlyoffice-docs-address/
|
|
depends_on:
|
|
- proxy
|
|
stdin_open: true
|
|
restart: always
|
|
expose:
|
|
- '3000'
|
|
|
|
redis:
|
|
container_name: redis
|
|
image: redis
|
|
restart: always
|
|
expose:
|
|
- '6379'
|
|
|
|
rabbitmq:
|
|
container_name: rabbitmq
|
|
image: rabbitmq
|
|
restart: always
|
|
expose:
|
|
- '5672'
|
|
|
|
postgresql:
|
|
container_name: postgresql
|
|
build:
|
|
context: .
|
|
target: db
|
|
environment:
|
|
- POSTGRES_DB=mydb
|
|
- POSTGRES_USER=myuser
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
|
restart: always
|
|
expose:
|
|
- '5432'
|
|
volumes:
|
|
- postgresql_data:/var/lib/postgresql
|
|
|
|
volumes:
|
|
common_data:
|
|
postgresql_data:
|