diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..24f9f8d --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.env +data/ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..26278c6 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "lighthouse-ci"] + path = lighthouse-ci + url = https://github.com/GoogleChrome/lighthouse-ci.git diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..6bd61c3 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,33 @@ +version: "3.8" +services: + postgres: + image: postgres:14 + environment: + - POSTGRES_USER=lhci + - POSTGRES_PASSWORD + - POSTGRES_DB=lhci + volumes: + - ./data/postgres:/var/lib/postgresql/data/ + restart: always + healthcheck: + test: pg_isready -U lhci -d lhci + interval: 10s + timeout: 5s + retries: 5 + + lhci: + #image: patrickhulce/lhci-server:latest + build: lighthouse-ci/docs/recipes/docker-server + restart: always + #command: "--storage.sqlDialect=postgres --storage.sqlConnectionUrl=postgres://lhci:$POSTGRES_PASSWORD@postgres/lhci" + volumes: + - ./data/lhci-server:/data + #- ./lighthouserc.json:/usr/src/lhci/lighthouserc.json + ports: + - 127.0.0.1:87:9001 + environment: + - LHCI_STORAGE__STORAGE_METHOD=sql + - LHCI_STORAGE__SQL_DIALECT=postgres + - LHCI_STORAGE__SQL_CONNECTION_URL="postgres://lhci:$POSTGRES_PASSWORD@postgres/lhci" + - LHCI_STORAGE__SQL_CONNECTION_SSL=false + - LHCI_NO_LIGHTHOUSERC=true diff --git a/lighthouse-ci b/lighthouse-ci new file mode 160000 index 0000000..72270e7 --- /dev/null +++ b/lighthouse-ci @@ -0,0 +1 @@ +Subproject commit 72270e7cfed4018c414b4dc5251d87fc35b5eae3