diff --git a/mysql.yml b/mysql.yml index 4a1993f..8fba3c8 100644 --- a/mysql.yml +++ b/mysql.yml @@ -11,7 +11,6 @@ services: - DB_SERVER_PORT=3306 - DB_SERVER_NAME=onlyoffice - DB_SERVER_USER=onlyoffice - - DB_SERVER_PASS=onlyoffice stdin_open: true restart: always ports: diff --git a/postgres.yml b/postgres.yml new file mode 100644 index 0000000..5116153 --- /dev/null +++ b/postgres.yml @@ -0,0 +1,40 @@ +version: '2' +services: + onlyoffice-documentserver: + container_name: onlyoffice-documentserver + image: onlyoffice/4testing-documentserver-ie:latest + depends_on: + - onlyoffice-postgresql + environment: + - DB_SERVER_TYPE=postgres + - DB_SERVER_HOST=onlyoffice-postgresql + - DB_SERVER_PORT=5432 + - DB_SERVER_NAME=onlyoffice + - DB_SERVER_USER=onlyoffice + stdin_open: true + restart: always + ports: + - '80:80' + networks: + - onlyoffice + + onlyoffice-postgresql: + container_name: onlyoffice-postgresql + image: postgres:9.5 + environment: + - POSTGRES_DB=onlyoffice + - POSTGRES_USER=onlyoffice + networks: + - onlyoffice + restart: always + expose: + - '5432' + volumes: + - postgresql_data:/var/lib/postgresql + +networks: + onlyoffice: + driver: 'bridge' + +volumes: + postgresql_data: