Skip to content

Executing the full standalone Cloudlog stack

Luca edited this page Jul 4, 2023 · 13 revisions

This Docker Compose script makes sure all the services are ready to run the Cloudlog installation. Persistency is enabled by default on both MySQL and Cloudlog

Step 1: Create docker-compose.yml

  1. Connect to the machine where you want to deploy Cloudlog
  2. Create a new docker-compose.yml
  3. Paste the following code
version: '3'
services:
  cloudlog-mysql:
    image: mysql:latest
    container_name: cloudlog-mysql
    environment:
      MYSQL_ROOT_PASSWORD: password-segreta # <- Use a strong password here
    #ports:
      #- "3306:3306" # <- Uncomment these lines only if you need to expose the MySQL container to the network
    volumes:
      - cloudlog-dbdata:/var/lib/mysql
    restart: unless-stopped

  phpmyadmin:
    image: phpmyadmin:latest
    container_name: cloudlog-phpmyadmin
    depends_on:
      - cloudlog-mysql
    environment:
      PMA_HOST: cloudlog-mysql
      PMA_PORT: 3306
      PMA_ARBITRARY: 1
      PMA_USER: root
      PMA_PASSWORD: password-segreta # <- Put same strong password here
    restart: unless-stopped
    ports:
      - "8083:80"
      
  cloudlog:
    image: 2m0sql/cloudlog:latest
    container_name: cloudlog-main
    depends_on:
      - cloudlog-mysql
    volumes:
      - cloudlog-config:/var/www/html/application/config
      - cloudlog-backup:/var/www/html/application/backup
      - cloudlog-uploads:/var/www/html/application/uploads
    ports:
      - "8086:80"
    restart: unless-stopped

volumes:
  cloudlog-dbdata:
  cloudlog-config:
  cloudlog-backup:
  cloudlog-uploads:

Important notes

  • Make sure to provide a strong password on the MySQL environment variables
  • PhpMyAdmin should be stopped after the first setup and executed only for debugging purposes
  • MySQL is only accessible from the Docker environment, if you want to expose it please uncomment the ports: lines

Step 2: Execute the stack

  1. Execute docker compose up -d

You should see the terminal downloading some stuff and then returning to the normal blinking cursor, if no errors are shown you are good to go!

Step 3: Create a Cloudlog user

  1. Access PhpMyAdmin at http://ipaddress:8083
  2. Click on Users accounts on the top bar
  3. Click on Add a new user
  4. Enter a valid username and password (twice). Make sure to remember these parameters, we will need them later!
  5. Make sure to tick Create a database with same name and grand all privileges.
  6. Click Execute to proceed

Step 4: Configure Cloudlog

  1. Access Cloudlog at http://ipaddress:8086/install
  2. Set:
    • Directory: leave blank
    • Website: should be set already
    • Default gridsquare: your QTH locator
    • DB Hostname: cloudlog-mysql
    • DB User: the username you created in step 3
    • DB Pass: the password you configured in step 3
    • DB Name: same as username
  3. Click on Install

Step 5: Enjoy!

Clone this wiki locally