Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker compose Example? #38

Open
killmasta93 opened this issue Apr 2, 2023 · 0 comments
Open

Docker compose Example? #38

killmasta93 opened this issue Apr 2, 2023 · 0 comments

Comments

@killmasta93
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant