Imageboards done right.
You must have
docker
anddocker-compose
installed
-
You must set the following enviroment variables
Variable Description Example PHX_DEVDB_PASSWORD
Development enviroment postgresql password foobar
PHX_TESTDB_PASSWORD
Postgresql password for running tests foobar
POSTGRES_PASSWORD
Postregresql container password foobar
You can use
.env
-
Build images with
docker-compose
docker-compose build
-
If that's the first run, we have to run some ecto tasks
Create the database
docker-compose run web mix ecto.create
Run migrations
docker-compose run web mix ecto.migrate
-
Now we can set everything up
docker-compose up