To separate database PostgreSQL from alfresco, i did these steps with failure:
CREATE USER alfresco WITH PASSWORD 'admin';
CREATE DATABASE alfresco WITH OWNER alfresco;
GRANT ALL PRIVILEGES ON DATABASE alfresco TO alfresco;
db.driver=org.postgresql.Driver
db.username=alfresco
db.password=admin
db.name=alfresco
db.url=jdbc:postgresql://173.16.6.61:5432/alfresco
db.pool.max=275
the problem was remote connections to PostgreSQL database server:
linux1@fe35577e9f8b:/# vim /etc/postgresql/9.4/main/postgresql.conf
and change :
listen_addresses = '*' # it accepts connection from any IP;
linux1@fe35577e9f8b:/# vim /etc/postgresql/9.4/main/pg_hba.conf
add this line at the end of pg_hba.conf
host all all 0.0.0.0/0 md5