services:
  php:
    build: .
    volumes:
      - /Users/niachi/Library/CloudStorage/Dropbox:/Users/niachi/Library/CloudStorage/Dropbox
      - /Users/niachi/Library/CloudStorage/dropbox_extender:/Users/niachi/Library/CloudStorage/dropbox_extender
      - /Users/niachi/Library/Application Support/Google/Chrome/Default/Bookmarks:/chrome_bookmarks:ro
    restart: always
    networks:
      - webnet

  nginx:
    image: nginx:alpine
    ports:
      - "80:80"
    volumes:
      - /Users/niachi/Library/CloudStorage/Dropbox:/Users/niachi/Library/CloudStorage/Dropbox
      - ./nginx_default.conf:/etc/nginx/conf.d/default.conf:ro
    depends_on:
      - php
    restart: always
    networks:
      - webnet

  ollama:
    image: ollama/ollama
    ports:
      - "11434:11434"
    volumes:
      - /Users/niachi/docker_ollama_models:/root/.ollama
    environment:
      - OLLAMA_MODELS=/root/.ollama/models
    restart: always
    networks:
      - webnet

networks:
  webnet:
    driver: bridge
