-
Notifications
You must be signed in to change notification settings - Fork 4
Installation (Docker)
Aleksey Ilyin edited this page Sep 22, 2024
·
11 revisions
Preparing the server
Environment variables
Installing the engine
- Update your existing package list:
sudo apt update- Install several required packages:
sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common- Add the GPG key for the official Docker repository to your system:
Debian
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -Ubuntu
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -- Add the Docker repository to your APT sources:
Debian
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"Ubuntu
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"- Update the package database again:
sudo apt update- Install Docker and Docker Compose:
sudo apt install docker-ce docker-ce-cli docker-composeDEBUG - debug mode (boolean);TZ - timezone offset (string);SIMPLE_PHONE_CHECK - simplified phone check (boolean);DATABASE - DSN connecting to the database (string);
- Clone the template repository:
git clone https://github.com/getwebspace/platform-template.git mysiteNote: mysite should be changed to a convenient name.
- Set write permissions:
chmod -R 0777 plugin
chmod -R 0777 resource
chmod -R 0777 theme
chmod -R 0777 var- Start the container manual:
docker run --detach \
--name mysite \
--publish 80:80 \
--restart always \
--volume $PWD/plugin:/var/container/plugin:ro \
--volume $PWD/resource:/var/container/public/resource:ro \
--volume $PWD/theme:/var/container/theme:ro \
--volume $PWD/var:/var/container/var:rw \
--volume $PWD/var/upload:/var/container/public/uploads:rw \
getwebspace/platform:latestOr modify the docker-compose.yml file to suit your needs.
- Initialize the database and create a user with administrator rights:
- Open the system page of the site in a browser (eg.
https://example.com/cup/system); - Enter your user details and take action.
Information
Usage
For developers