Add files

This commit is contained in:
BBaoVanC 2022-05-12 17:27:11 -05:00
parent 70b5c28190
commit 3f59f61e88
4 changed files with 39 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.env
data/

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "lighthouse-ci"]
path = lighthouse-ci
url = https://github.com/GoogleChrome/lighthouse-ci.git

33
docker-compose.yaml Normal file
View File

@ -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

1
lighthouse-ci Submodule

@ -0,0 +1 @@
Subproject commit 72270e7cfed4018c414b4dc5251d87fc35b5eae3