SQLite

@xf3l1x
f3l1x.io
18.10.2023

Β 

SQLite
version: "3.6"

services:
  app:
    image: nettteapp
    ports:
      - 8000:80
version: "3.6"

services:
  app:
    image: netteapp
    ports:
      - 8000:80

  db:
    image: mariadb:11.1
    environment:
      MYSQL_ROOT_PASSWORD: php
      MYSQL_DATABASE: php
      MYSQL_USER: php
      MYSQL_PASSWORD: php
    ports:
      - 3306:3306
    volumes:
      - .docker/db:/var/lib/mysql
SQLite
SQLite
Streaming
litestream
	replicate
	-config /data/litestream.yml
dbs:
  - path: "/data/db.db"
    replicas:
      - type: s3
        bucket: "myapp"
        path: "db"
        endpoint: "http://s3api.tld"
        region: "brno"
        access-key-id: "brno"
        secret-access-key: "pivo"
litestream
	restore
	-if-replica-exists
	-config /data/litestream.yml
	/data/db.sqlite
litestream 
	restore 
	-v 
	-if-replica-exists
	-config /data/litestream.yml 
	/data/db.db
litestream
	replicate 
	-config /data/litestream.yml
litestream 
	restore 
	-v 
	-if-replica-exists
	-config /data/litestream.yml 
	/data/db.db
litestream
	replicate 
	-config /data/litestream.yml 
	-exec "yourapp start"
SQLite

Streaming
  • litestream.io
  • developers.cloudflare.com/d1
  • github.com/thevahidal/soul
  • turso.tech
  • sqlitecloud.io
  • dbhub.io
github.com/f00b4r/2023-10-flyio-litestream-kuma
xmonitor.fly.dev

Recap

  • SQLite is πŸ†’
  • ​​​​Streaming is on πŸ”₯
  • Litestream is πŸ‘
  • OSS is the way

Time to selfie πŸ“·

Thank you!

@xf3l1x
f3l1x.io