Add docker compose config for postgres

This commit is contained in:
Semen Bezrukov 2019-10-22 12:13:54 +03:00
parent f780a8a826
commit d5a5098e02
2 changed files with 40 additions and 1 deletions

View file

@ -11,7 +11,6 @@ services:
- DB_SERVER_PORT=3306 - DB_SERVER_PORT=3306
- DB_SERVER_NAME=onlyoffice - DB_SERVER_NAME=onlyoffice
- DB_SERVER_USER=onlyoffice - DB_SERVER_USER=onlyoffice
- DB_SERVER_PASS=onlyoffice
stdin_open: true stdin_open: true
restart: always restart: always
ports: ports:

40
postgres.yml Normal file
View file

@ -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: