This commit is contained in:
duanchanghe 2021-07-25 12:02:34 +08:00
parent 3b830417a2
commit f3240445bc
2 changed files with 16 additions and 9 deletions

View file

@ -6,6 +6,8 @@ ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=nonint
ARG ONLYOFFICE_VALUE=onlyoffice ARG ONLYOFFICE_VALUE=onlyoffice
RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \ RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \
export http_proxy=http://newhome.picroup.com:1087 && \
export https_proxy=http://newhome.picroup.com:1087 && \
apt-get -y update && \ apt-get -y update && \
apt-get -yq install wget apt-transport-https gnupg locales && \ apt-get -yq install wget apt-transport-https gnupg locales && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0x8320ca65cb2de8e5 && \ apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0x8320ca65cb2de8e5 && \

View file

@ -3,7 +3,7 @@ services:
onlyoffice-documentserver: onlyoffice-documentserver:
build: build:
context: . context: .
container_name: onlyoffice-documentserver container_name: office
depends_on: depends_on:
- onlyoffice-postgresql - onlyoffice-postgresql
- onlyoffice-rabbitmq - onlyoffice-rabbitmq
@ -20,8 +20,7 @@ services:
#- JWT_HEADER=Authorization #- JWT_HEADER=Authorization
#- JWT_IN_BODY=true #- JWT_IN_BODY=true
ports: ports:
- '80:80' - '40006:80'
- '443:443'
stdin_open: true stdin_open: true
restart: always restart: always
stop_grace_period: 60s stop_grace_period: 60s
@ -31,6 +30,12 @@ services:
- /var/lib/onlyoffice/documentserver/App_Data/cache/files - /var/lib/onlyoffice/documentserver/App_Data/cache/files
- /var/www/onlyoffice/documentserver-example/public/files - /var/www/onlyoffice/documentserver-example/public/files
- /usr/share/fonts - /usr/share/fonts
labels:
- "traefik.enable=true"
- "traefik.http.routers.office.rule=Host(`office.jianzhi.group`)"
- "traefik.http.routers.office.entrypoints=websecure"
- "traefik.http.routers.office.tls.certresolver=myresolver"
- "traefik.http.services.office.loadbalancer.server.port=40006"
onlyoffice-rabbitmq: onlyoffice-rabbitmq:
container_name: onlyoffice-rabbitmq container_name: onlyoffice-rabbitmq