-
Choose which hostname Miaou will use, then copy
docker/miaou-default.env
todocker/miaou.env
and set the value ofMIAOU_HOST
to the hostname you chose, in this new file.Note: In this documentation, we will assume that your
MIAOU_HOST
value ismiaou.dev
, so when you'll see "miaou.dev", replace it by the hostname you chose. -
Copy the
docker/config.js
preconfigured 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 toCredentials
to create newOAuth client ID
.Select
Web application
as Application type, sethttp://miaou.dev
as Authorized Javascript origins andhttp://miaou.dev/auth/google/callback
as 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.js
file. -
Prebuild Miaou:
docker-compose up -d
-
Now you should have
postgres
andredis
up 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
postgres
container (which should be namedmiaou_postgres_1
) in order to be able to run SQL commands:docker exec -it miaou_postgres_1 psql -U miaou -w
Now that you have a prompt for
miaou
psql 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.sh
OR
# 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_1
If 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.