-
Choose which hostname Miaou will use, then copy
docker/miaou-default.envtodocker/miaou.envand set the value ofMIAOU_HOSTto the hostname you chose, in this new file.Note: In this documentation, we will assume that your
MIAOU_HOSTvalue ismiaou.dev, so when you'll see "miaou.dev", replace it by the hostname you chose. -
Copy the
docker/config.jspreconfigured file to the root of the Miaou sources. -
To be able to log in Miaou, you have to set a OAuth provider (here we'll use Google which is really easy to configure, assuming you have a Google account).
First, go to
https://console.developers.google.com/project, create a new project, then go toCredentialsto create newOAuth client ID.Select
Web applicationas Application type, sethttp://miaou.devas Authorized Javascript origins andhttp://miaou.dev/auth/google/callbackas Authorized redirect URIs.Now you'll be given a Client ID and a Client secret that you'll have to copy/paste in your new
config.jsfile. -
Prebuild Miaou:
docker-compose up -d
-
Now you should have
postgresandredisup and running, but Miaou should have failed to start because you still did not build the database.To do so, you'll have to go to the
postgrescontainer (which should be namedmiaou_postgres_1) in order to be able to run SQL commands:docker exec -it miaou_postgres_1 psql -U miaou -wNow that you have a prompt for
miaoupsql user, copy/paste the content of the SQL creation file located atsql/postgres.creation.sql, then exit the container with\q. -
Since you now have a working database, restart Miaou:
docker-compose up -d
Now you should see your Miaou application running in your host browser at
http://miaou.dev.
# Build miaou application with a fresh copy of local sources
docker-compose up -d --build# Start miaou
docker-compose up -d
# Exec bash in miaou container
docker exec -it miaou_miaou_1 bash
# Run test in miaou container
sh test.shOR
# Start miaou
docker-compose up -d
# Run test in miaou container
docker exec -it miaou_miaou_1 sh test.sh# Start miaou
docker-compose up -d
# Get miaou container logs in real time
docker logs -f miaou_miaou_1If you don't want to rebuild Miaou each time you update a file, open docker-compose.yml file and uncomment the command and volumes keys of the miaou service.
Then run docker-compose up -d to create a container which will start Miaou using nodemon to watch the given volumes and restart the application accordingly.