Sign inSign up

savadanko/itmo-lab3-compose:1.0

Manifest digest

sha256:83977bbfa9bffaf6f1087a008cf98e367a1cb1512f96fdbf48ef6af5a8165bb6

Last pushed

3 days by savadanko

Type

Compose

Manifest digest

sha256:83977bbfa9bffaf6f1087a008cf98e367a1cb1512f96fdbf48ef6af5a8165bb6

Compose file content

{
  "name": "lab3",
  "networks": {
    "backend": {
      "ipam": {},
      "internal": true
    },
    "default": {
      "ipam": {}
    },
    "frontend": {
      "ipam": {}
    }
  },
  "services": {
    "app": {
      "restart": "unless-stopped",
      "command": null,
      "entrypoint": null,
      "environment": {
        "MYSQL_DATABASE": "nextcloud",
        "MYSQL_HOST": "db",
        "MYSQL_PASSWORD_FILE": "/run/lab3/db-user",
        "MYSQL_USER": "nextcloud",
        "NEXTCLOUD_ADMIN_PASSWORD_FILE": "/run/lab3/nc-admin",
        "NEXTCLOUD_ADMIN_USER": "savadanko",
        "NEXTCLOUD_TRUSTED_DOMAINS": "localhost 127.0.0.1 192.168.56.30"
      },
      "image": "savadanko/itmo-lab3-nextcloud:1.0",
      "networks": {
        "backend": null,
        "frontend": null
      },
      "volumes": [
        {
          "type": "volume",
          "source": "nc-data",
          "target": "/var/www/html",
          "volume": {}
        },
        {
          "type": "volume",
          "source": "private",
          "target": "/run/lab3",
          "read_only": true,
          "volume": {}
        }
      ],
      "depends_on": {
        "db": {
          "condition": "service_healthy",
          "required": true
        }
      },
      "healthcheck": {
        "test": [
          "CMD-SHELL",
          "php -r '$$s=json_decode(file_get_contents(\"http://localhost/status.php\"),true);exit(empty($$s[\"installed\"])?1:0);'"
        ],
        "timeout": "10s",
        "interval": "15s",
        "retries": 60,
        "start_period": "1m0s"
      }
    },
    "db": {
      "restart": "unless-stopped",
      "command": [
        "--transaction-isolation=READ-COMMITTED",
        "--binlog-format=ROW"
      ],
      "entrypoint": null,
      "environment": {
        "MARIADB_DATABASE": "nextcloud",
        "MARIADB_PASSWORD_FILE": "/run/lab3/db-user",
        "MARIADB_ROOT_PASSWORD_FILE": "/run/lab3/db-root",
        "MARIADB_USER": "nextcloud"
      },
      "image": "mariadb:11.4",
      "networks": {
        "backend": null
      },
      "volumes": [
        {
          "type": "volume",
          "source": "db-data",
          "target": "/var/lib/mysql",
          "volume": {}
        },
        {
          "type": "volume",
          "source": "private",
          "target": "/run/lab3",
          "read_only": true,
          "volume": {}
        }
      ],
      "depends_on": {
        "init": {
          "condition": "service_completed_successfully",
          "required": true
        }
      },
      "healthcheck": {
        "test": [
          "CMD",
          "healthcheck.sh",
          "--connect",
          "--innodb_initialized"
        ],
        "timeout": "5s",
        "interval": "10s",
        "retries": 30
      }
    },
    "init": {
      "restart": "no",
      "command": null,
      "entrypoint": null,
      "image": "savadanko/itmo-lab3-init:1.0",
      "networks": {
        "default": null
      },
      "volumes": [
        {
          "type": "volume",
          "source": "private",
          "target": "/private",
          "volume": {}
        }
      ]
    },
    "web": {
      "restart": "unless-stopped",
      "command": null,
      "entrypoint": null,
      "image": "savadanko/itmo-lab3-proxy:1.0",
      "networks": {
        "frontend": null
      },
      "depends_on": {
        "app": {
          "condition": "service_healthy",
          "required": true
        }
      },
      "ports": [
        {
          "mode": "ingress",
          "target": 80,
          "published": "2022",
          "protocol": "tcp"
        }
      ]
    }
  },
  "volumes": {
    "db-data": {},
    "nc-data": {},
    "private": {}
  }
}
services:
  app:
    image: docker.io/savadanko/itmo-lab3-nextcloud:1.0@sha256:5cc2d63428672ef833cdd6367d8e16769165defd9b4a285f6834c5fd4ebf066d
  db:
    image: docker.io/library/mariadb:11.4@sha256:1292844148b311e4ed4300022a996d39083f415a963e970cf47cad1b3b18e3a6
  init:
    image: docker.io/savadanko/itmo-lab3-init:1.0@sha256:9a3760454b2cfdefc99fb454dc827dcda42bd323a730626d0c3b6420778f0bcb
  web:
    image: docker.io/savadanko/itmo-lab3-proxy:1.0@sha256:945730299e7afb26b1af5b3643fe68b949f50617542a210c57245d7b2570cac5

Docker commands

docker compose -f oci://savadanko/itmo-lab3-compose:1.0 up

Use the above command to pull and run the Compose file. Learn more⁠.

Images used

Image + 1 more

MariaDB Server is a high performing open source relational database, forked from MySQL.


Pulls

1B+

Stars

6115

Last Updated

about 13 hours

Image


Pulls

0

Stars

0

Last Updated

3 days

Image


Pulls

0

Stars

0

Last Updated

3 days

Image


Pulls

0

Stars

0

Last Updated

3 days