services:
  app:
    image: z1glr/golunteer:latest
    build: .
    volumes:
      - database:/usr/bin/app/data
      - logs:/usr/bin/app/logs
    restart: unless-stopped
    ports:
      - 80:80
  
volumes:
  database:
    driver: local
    driver_opts:
      type: none
      device: "./data"
      o: bind
  logs:
    driver: local
    driver_opts:
      type: none
      device: "./logs"
      o: bind

