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

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

version: '3'
services:
  db:
    image: mysql:latest
    container_name: cloudlog-mysql
    environment:
      MYSQL_ROOT_PASSWORD: password-segreta # <- Use a strong password here
    ports:
      - "3306:3306"
    volumes:
      - cloudlog-dbdata:/var/lib/mysql
    restart: unless-stopped

  phpmyadmin:
    image: phpmyadmin:latest
    container_name: cloudlog-phpmyadmin
    depends_on:
      - db
    environment:
      PMA_HOST: db
      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:
      - db
    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:

Once the configuration has completed, you can proceed with the normal setup, make sure to access PHPmyAdmin first and create a new user and a DB to store Cloudlog data. During the setup procedure you can use db as hostname for MySQL

Clone this wiki locally