lighthouse-server/docker-compose.yaml

34 lines
1014 B
YAML

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