openvk/install/automated/docker
2023-09-23 01:11:00 +03:00
..
acl_handler.sh CI for OpenVK, Kubernetes and Docker deployments (#735) 2022-10-30 14:44:14 +03:00
base-php-apache.Dockerfile Docker: add imagick to dependencies 2023-09-22 23:56:18 +03:00
base-php-cli.Dockerfile CI for OpenVK, Kubernetes and Docker deployments (#735) 2022-10-30 14:44:14 +03:00
docker-compose.yml Docker: add KAFKA_CFG_NODE_ID to docker-compose 2023-09-23 01:11:00 +03:00
mariadb-eventdb.Dockerfile CI for OpenVK, Kubernetes and Docker deployments (#735) 2022-10-30 14:44:14 +03:00
mariadb-primary.Dockerfile CI for OpenVK, Kubernetes and Docker deployments (#735) 2022-10-30 14:44:14 +03:00
openvk.Dockerfile CI for OpenVK, Kubernetes and Docker deployments (#735) 2022-10-30 14:44:14 +03:00
Readme.md CI for OpenVK, Kubernetes and Docker deployments (#735) 2022-10-30 14:44:14 +03:00

Docker

Note: buildx is required for building multi-arch images. See Docker Buildx for more information.

If unsure, skip to single-arch image build instructions.

Build

Note: commands below should be run from the root of the repository.

Multi-arch (arm64, amd64)

Base images:

docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/openvk/openvk/php:8.1-cli . --load -f install/automated/docker/base-php-cli.Dockerfile
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/openvk/openvk/php:8.1-apache . --load -f install/automated/docker/base-php-apache.Dockerfile

DB images:

docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/openvk/openvk/mariadb:10.9-primary . --load -f install/automated/docker/mariadb-primary.Dockerfile
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/openvk/openvk/mariadb:10.9-eventdb . --load -f install/automated/docker/mariadb-eventdb.Dockerfile

OpenVK main image:

docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/openvk/openvk/openvk:latest . --load -f install/automated/docker/openvk.Dockerfile

Single-arch

Base images:

docker build -t ghcr.io/openvk/openvk/php:8.1-cli . -f install/automated/docker/base-php-cli.Dockerfile
docker build -t ghcr.io/openvk/openvk/php:8.1-apache . -f install/automated/docker/base-php-apache.Dockerfile

DB images:

docker build -t ghcr.io/openvk/openvk/mariadb:10.9-primary . -f install/automated/docker/mariadb-primary.Dockerfile
docker build -t ghcr.io/openvk/openvk/mariadb:10.9-eventdb . -f install/automated/docker/mariadb-eventdb.Dockerfile

OpenVK main image:

docker build -t ghcr.io/openvk/openvk/openvk:latest . -f install/automated/docker/openvk.Dockerfile

Run

If you have Docker Desktop installed, then you probably have docker-compose installed as well. If not, refer to Docker Compose for installation instructions.

Before start, copy openvk-example.yml from the root of the repository to openvk.yml in this directory and edit it to your liking.

Then, obtain chandler-example.yml from chandler repository and place it in this directory as well.

Start is simple as docker-compose up -d. You can also use docker-compose up to see logs.

  • OpenVK will be available at http://localhost:8080/.
  • PHPMyAdmin will be available at http://localhost:8081/.
  • Adminer will be available at http://localhost:8082/.