Skip to content

need persistence volume for qloapps #1395

@amjad489

Description

@amjad489

Hello Team,

i'm working on setting up qloapps using docker. However I dont see any where in the document where it mentions what is the location to mount for application. Because we are in testing phase and we cannot keep loosing the data. I'm sharing the docker-compose for your reference.

version: '3.8'

services:
  qloappsv161:
    image: webkul/qloapps_docker:latest
    container_name: qloappsv161
    restart: always
    depends_on:
      - mysql
    ports:
      - "80:80"
      - "2222:22"
    environment:
      USER_PASSWORD: qloappsuserpassword
      MYSQL_ROOT_PASSWORD: myrootpassword
      MYSQL_DATABASE: qlo161
      MYSQL_USER: qloappsuser
      MYSQL_PASSWORD: qloappsuserpassword
      MYSQL_HOST: mysql
    networks:
      - qloapps_network
    volumes:
      - ./qloapps_data:/home/qloapps/www/QloApps  # Persist application data

  mysql:
    image: mysql:5.7
    container_name: qloapps_mysql
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: myrootpassword
      MYSQL_DATABASE: qlo161
      MYSQL_USER: qloappsuser
      MYSQL_PASSWORD: qloappsuserpassword
    ports:
      - "3306:3306"
    volumes:
      - ./mysql_data:/var/lib/mysql
    networks:
      - qloapps_network


networks:
  qloapps_network:
    driver: bridge

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions