Your locally hosted lumina server for IDAPro
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

docker-compose: check that db is ready before starting (#81)

* Docker: bump to latest rust version + use sparse registry protocol

* docker-compose: use healthcheck to determine if db is ready

authored by

Naim A and committed by
GitHub
94dcf9af de02806c

+9 -2
+2 -1
Dockerfile
··· 1 - FROM rust:1.67.0-slim-buster 1 + FROM rust:1.68.2-slim-buster 2 2 ARG DEBIAN_FRONTEND=noninteractive 3 3 RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests ca-certificates pkg-config libssl-dev libpq-dev 4 + ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse 4 5 RUN cargo install diesel_cli --version 2.0.1 --no-default-features --features postgres 5 6 6 7 COPY common /lumen/common
+7 -1
docker-compose.yml
··· 6 6 db: 7 7 image: postgres:15.1-alpine 8 8 container_name: lumina-postgres 9 + healthcheck: 10 + test: ["CMD", "pg_isready", "-U", "lumina"] 11 + interval: 5s 12 + retries: 10 13 + timeout: 5s 9 14 environment: 10 15 POSTGRES_USER: lumina 11 16 POSTGRES_DB: lumina ··· 19 24 lumina: 20 25 build: . 21 26 depends_on: 22 - - db 27 + db: 28 + condition: service_healthy 23 29 ports: 24 30 - 1234:1234 25 31 - 8082:8082