Using df-docker to deploy DF with Postgres does not appear to work currently.
Setting DB_DRIVER to a value other than mysql (e.g. pgsql) does not appear to work. This seems to be because the DB_HOST statement contains a specific reference to mysql. Moving the DB_DRIVER statement above the DB_HOST statement has the desired behaviour. I've not modified the DB_HOST because I could unexpectedly impact the current behaviour.
Adding support for setting DB_PORT was also required as Postgres uses port 5432 rather than MySQL's 3306
This fix should work for other databases too however I've only tested it with Postgres and MySQL.
Below is an example docker-compose.yml file for a Postgres deployment:
Using df-docker to deploy DF with Postgres does not appear to work currently.
Setting DB_DRIVER to a value other than mysql (e.g. pgsql) does not appear to work. This seems to be because the DB_HOST statement contains a specific reference to mysql. Moving the DB_DRIVER statement above the DB_HOST statement has the desired behaviour. I've not modified the DB_HOST because I could unexpectedly impact the current behaviour.
Adding support for setting DB_PORT was also required as Postgres uses port 5432 rather than MySQL's 3306
This fix should work for other databases too however I've only tested it with Postgres and MySQL.
Below is an example docker-compose.yml file for a Postgres deployment: