- Start Mongo and Redis service containers or install services on host machine
- Build image
./app build -i <image name>
ex../app build -i projects/pesennik
- Create application container
ex.
$ ./app create -m <mongo container> \ -mh <mongo host name> \ -mp <mongo port> \ -r <redis container> \ -rh <redis host name> \ -rp <redis port> \ -p <expose port> \ -i <docker image name> \ -n <container name
./app create -m mongo-service -mh mongo -mp 27017 -r redis-service -rh redis -rp 6379 -p 8080 -i projects/pesennik -n pesennik
- Add app container to systemctl.
- enable service
$ sudo systemctl enable {path to}/pesennik.service
- start service
$ systemctl start pesennik
- enable service