Install docker (ubuntu): https://docs.docker.com/engine/install/ubuntu/
Post install setting (linux only): https://docs.docker.com/engine/install/linux-postinstall/
docker-compose install: https://docs.docker.com/compose/install/
NOTE: Add in /etc/hosts
....
127.0.0.1 myfriendup.com
127.0.0.1 onlyoffice.myfriendup.com
127.0.0.1 community.myfriendup.com
....
git clone https://github.com/primesoftnz/friendos-docker.git
cd friendos-docker
git clone https://github.com/FriendUPCloud/friendup
git clone https://github.com/FriendSoftwareLabs/presence
git clone https://github.com/FriendSoftwareLabs/friendchat
git clone https://github.com/FriendUPCloud/friend-office.git
docker-compose up --build
All settings files can be found in ./docker/
folder, inside folder, everything is split per app/dependency. (research folder)
Database data is persistent and is stored in folder ./db-data/
which will be created once when mariadb container is built.
Project entrypoint is ./docker-compose.yml
file which explain a little bit about how each container is build, if it is image or build from file, which file, which folder is mounted where and so on (a little bit more research) :)
Start and build/rebuild project: docker-compose up --build
Start project: docker-compose up
Start project in background, use -d
argument eg. docker-compose up --build -d
Stop containers can be used CTRL-C
but it doesn't remove containers, containers can be removed manually or by running command below
Stop containers from project directory: docker-compose down
List running docker containers: docker container ls
or shortcut docker ps
List all docker containers: docker container ls -a
or shortcut docker ps -a
Remove docker container: docker container rm [<container_id>|<container_name>]
or shortcut docker rm [<container_id>|<container_name>]
Force remove container: docker container rm -f [<container_id>|<container_name>]
or shortcut docker rm -f [<container_id>|<container_name>]
List docker images: docker image ls
List docker images with all layers: docker image ls -a
Remove docker images: docker image rm [<image_id>|<image_name>]
(can be multiple containers id id id)
Print logs from container to console (last few lines): docker logs [<container_id>|<container_name>]
Print logs from container to console (and keep printing): docker logs -f [<container_id>|<container_name>]