Run from shell in project root, or run ./build.sh. You will need to add sudo if you are not in the docker group.
docker build -t postgres-pgtextsearch .
These will be used by both docker an our Phoenix app to setup and connect to the PostgreSQL database.
POSTGRESQL_USERNAME=<YOUR_USERNAME>
POSTGRESQL_PASSWORD=<YOUR_NEW_PASSWORD>
POSTGRESQL_DATABASE=<YOUR_DATABASE_NAME>
POSTGRESQL_PORT=<PORT_TO_MAP_TO_ON_HOST>
POSTGRESQL_HOSTNAME=<YOUR_DATABASE_NAME>
Start the PostgreSQL server
docker-compose up
This will allow SELinux to access the ./pgdata/ directory the host filesystem
sudo chcon -Rt svirt_sandbox_file_t ./pgdata/
To start your Phoenix server:
- Run
mix setupto install and setup dependencies - Start Phoenix endpoint with
mix phx.serveror inside IEx withiex -S mix phx.server
Now you can visit localhost:4002 from your browser.
Ready to run in production? Please check our deployment guides.
- Register for an account at the
/users/registeruri - Follow the login link in the upper right or access the uri
/users/log_inwith newly created credentials - Go to the
/chaturi, create server, and begin chatting.