itop-docker icon indicating copy to clipboard operation
itop-docker copied to clipboard

Docker compose Example?

Open killmasta93 opened this issue 1 year ago • 0 comments

Hi I was wondering if you have an example of a docker compose? I currently have this but not sure if the files how would i add it the bind the volumes?

Thank you


version: '3'
services:
  itop:
    image: vbkunin/itop
    restart: always
    ports:
      - "3003:80"
    environment:
      - DB_HOST=db
      - DB_PORT=3306
      - DB_NAME=itop
      - DB_USER=root
      - DB_PASSWORD=secret
    depends_on:
      - db
  db:
    image: mysql:5.7
    restart: always
    environment:
      - MYSQL_DATABASE=itop
      - MYSQL_ROOT_PASSWORD=secret
    volumes:
      - db_data:/var/lib/mysql
volumes:
  db_data:

volumes:
  db_data:
    driver: local-persist
    driver_opts:
     mountpoint: /scsi2/itop

killmasta93 avatar Apr 02 '23 04:04 killmasta93