Fixes & refactoring

This commit is contained in:
Semyon Bezrukov 2020-09-09 16:45:09 +03:00
parent 67b274d0ca
commit be26294777
3 changed files with 32 additions and 23 deletions

View file

@ -10,6 +10,7 @@ env:
- config: standalone.yml - config: standalone.yml
PRODUCT_NAME: documentserver-ie PRODUCT_NAME: documentserver-ie
# certificates (default tls if onlyoffice not exists) # certificates (default tls if onlyoffice not exists)
- config: certs.yml - config: certs.yml
ssl: true ssl: true
@ -31,10 +32,18 @@ env:
SSL_KEY_PATH: /var/www/onlyoffice/Data/certs/mycert.key SSL_KEY_PATH: /var/www/onlyoffice/Data/certs/mycert.key
# postgresql latest
- config: postgres.yml
POSTGRES_VERSION: latest
# postgresql 9
- config: postgres.yml
POSTGRES_VERSION: 9
# postgresql 9.5 # postgresql 9.5
- config: postgres.yml - config: postgres.yml
# custom values # postgresql custom values
- config: postgres.yml - config: postgres.yml
DB_NAME: mydb DB_NAME: mydb
DB_USER: myuser DB_USER: myuser
@ -42,41 +51,41 @@ env:
POSTGRES_DB: mydb POSTGRES_DB: mydb
POSTGRES_USER: myuser POSTGRES_USER: myuser
# postgresql 9 # postgresql deprecated variables
- config: postgres.yml
POSTGRES_VERSION:
# postgresql latest
- config: postgres.yml
POSTGRES_VERSION: latest
# deprecated variables
- config: postgres-old.yml - config: postgres-old.yml
# mysql 5.7
- config: mysql.yml
# mysql 5 # mysql 5
- config: mysql.yml - config: mysql.yml
MYSQL_VERSION: 5 MYSQL_VERSION: 5
# mysql 5.7
- config: mysql.yml
# mariadb 10.5
- config: mariadb.yml
# mariadb latest # mariadb latest
- config: mariadb.yml - config: mariadb.yml
MARIADB_VERSION: latest MARIADB_VERSION: latest
# mariadb 10
- config: mariadb.yml
MARIADB_VERSION: 10
# mariadb 10.5
- config: mariadb.yml
# activemq 5.14.3
- config: activemq.yml
# activemq latest # activemq latest
- config: activemq.yml - config: activemq.yml
ACTIVEMQ_VERSION: latest ACTIVEMQ_VERSION: latest
# activemq 5
- config: activemq.yml
ACTIVEMQ_VERSION: 5
# activemq 5.14.3
- config: activemq.yml
# rabbitmq latest # rabbitmq latest
- config: rabbitmq.yml - config: rabbitmq.yml
@ -92,14 +101,14 @@ env:
# redis latest with community edition # redis latest with community edition
- config: redis.yml - config: redis.yml
# redis 5
- config: redis.yml
REDIS_VERSION: 5
# redis latest with integraion edition # redis latest with integraion edition
- config: redis.yml - config: redis.yml
PRODUCT_NAME: documentserver-ie PRODUCT_NAME: documentserver-ie
# redis 5 with community edition
- config: redis.yml
REDIS_VERSION: 5
# graphite # graphite
- config: graphite.yml - config: graphite.yml

View file

@ -19,7 +19,7 @@ services:
onlyoffice-postgresql: onlyoffice-postgresql:
container_name: onlyoffice-postgresql container_name: onlyoffice-postgresql
image: postgres:${POSTGRES_VERSION:-9.5} image: postgres:9.5
environment: environment:
- POSTGRES_DB=${POSTGRES_DB:-onlyoffice} - POSTGRES_DB=${POSTGRES_DB:-onlyoffice}
- POSTGRES_USER=${POSTGRES_USER:-onlyoffice} - POSTGRES_USER=${POSTGRES_USER:-onlyoffice}

View file

@ -17,7 +17,7 @@ services:
onlyoffice-rabbitmq: onlyoffice-rabbitmq:
container_name: onlyoffice-rabbitmq container_name: onlyoffice-rabbitmq
image: rabbitmq:${RABBITMQ_VERSION:-latest} image: rabbitmq
restart: always restart: always
networks: networks:
- onlyoffice - onlyoffice