Add docker compose config for postgres
This commit is contained in:
parent
f780a8a826
commit
d5a5098e02
|
|
@ -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
40
postgres.yml
Normal 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:
|
||||||
Loading…
Reference in a new issue