version: '2.2'
services: 
  conduit:
    image: matrixconduit/matrix-conduit:latest
    restart: unless-stopped
    volumes:
      - db:/var/lib/matrix-conduit/
    environment:
      CONDUIT_SERVER_NAME: ixvd.net
      CONDUIT_DATABASE_PATH: /var/lib/matrix-conduit/
      CONDUIT_DATABASE_BACKEND: rocksdb
      CONDUIT_PORT: 6167
      CONDUIT_MAX_REQUEST_SIZE: '20000000'
      CONDUIT_ALLOW_REGISTRATION: 'false'
      CONDUIT_ENABLE_LIGHTNING_BOLT: 'false'
      CONDUIT_ALLOW_FEDERATION: 'true'
      CONDUIT_TRUSTED_SERVERS: '["matrix.org"]'
      CONDUIT_ADDRESS: 0.0.0.0
      CONDUIT_CONFIG: ''
    networks:
      - proxy
      - internal
  cinny:
    build: custom/cinny
    restart: unless-stopped
    networks:
      - proxy
      - internal
      
volumes:
  db:
    driver: local
    driver_opts:
      type: none
      device: /srv/conduit/other/db
      o: bind