services:
  docmost:
    image: docmost/docmost:latest
    depends_on:
      - db
      - redis
    environment:
      APP_URL: 'https://wiki.intranet-netbyus.com'
      APP_SECRET: 'PL;epbm3K-D85L(5mr8)8,ax83=@eYY9Q+C'
      DATABASE_URL: 'postgresql://docmost:y4Ey3594nSMfWp@db:5432/docmost?schema=public'
      REDIS_URL: 'redis://redis:6379'
      MAIL_DRIVER: 'smtp'
      SMTP_HOST: "mailpar.centrech.fr"
      SMTP_PORT: 25
      SMTP_USERNAME: "smtp@netbyus.com"
      SMTP_PASSWORD: "xNysE@xpE"
      SMTP_SECURE: false
      MAIL_FROM_ADDRESS: "support@netbyus.com"
      MAIL_FROM_NAME: "Docmost"
      NODE_TLS_REJECT_UNAUTHORIZED: 0
    ports:
      - "4000:3000"
    restart: unless-stopped
    volumes:
      - docmost:/app/data/storage

  db:
    image: postgres:16-alpine
    environment:
      POSTGRES_DB: docmost
      POSTGRES_USER: docmost
      POSTGRES_PASSWORD: y4Ey3594nSMfWp
    restart: unless-stopped
    volumes:
      - db_data:/var/lib/postgresql/data

  redis:
    image: redis:7.2-alpine
    restart: unless-stopped
    volumes:
      - redis_data:/data

volumes:
  docmost:
  db_data:
  redis_data:
