- build docker image
$ docker-compose build
Run containers.
- node container which serves LINE bot webhook endpoints.
- postgresql container
And you can see "TOKIMI is AWAKE" at http://localhost:8080/test
.
docker-compose run [--rm] node version
to see the node versiondocker-compose run [--rm] node shell
to run bashdocker-compose run [--rm] node migrate
to migratedocker-compose run [--rm] node rollback
to rollback the previous migration
To create a new model, exec bash in container first.
$ docker-compose run --rm node shell
Then, you can run sequelize-cli.
$ `npm bin`/sequelize model:create --name Task --attributes 'userId:string taskName:string'
Run test-postreq.sh
in host, and you can see error log in docker console.