diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index aa58dbe..f7d5ce5 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -1,20 +1,21 @@ # Lightweight LNbits dev environment — FakeWallet, no Lightning nodes # # Usage: -# LNBITS_SRC=~/dev/lnbits/demo docker compose -f docker-compose.dev.yml up -d --build +# docker compose -f docker-compose.dev.yml up -d --build # docker compose -f docker-compose.dev.yml logs -f lnbits # docker compose -f docker-compose.dev.yml down # -# LNBITS_SRC defaults to ~/dev/lnbits/demo. Override to use a different branch: +# LNBITS_SRC defaults to ~/dev/lnbits/main. Override to use a different branch: # LNBITS_SRC=~/dev/lnbits/dev docker compose -f docker-compose.dev.yml up -d --build # -# LNbits: http://localhost:5001 -# Fava: http://localhost:3333 +# LNbits: http://localhost:5001 +# Fava: http://localhost:3333 +# pict-rs: http://localhost:6033 services: lnbits: hostname: lnbits - build: ${LNBITS_SRC:-/home/padreug/dev/lnbits/demo} + build: ${LNBITS_SRC:-/home/padreug/dev/lnbits/main} restart: on-failure user: "0:0" environment: @@ -61,7 +62,7 @@ services: # Bind the lnbits package so host edits are picked up on container # restart without rebuilding the image. The venv at /app/.venv stays # baked in. - - ${LNBITS_SRC:-/home/padreug/dev/lnbits/demo}/lnbits:/app/lnbits + - ${LNBITS_SRC:-/home/padreug/dev/lnbits/main}/lnbits:/app/lnbits # Pre-start init: pin libra's fava_url to http://fava:5000. - ./lnbits-entrypoint.sh:/usr/local/bin/lnbits-entrypoint.sh:ro command: ["/usr/local/bin/lnbits-entrypoint.sh"] @@ -74,3 +75,19 @@ services: - 3333:5000 volumes: - ./data/fava:/bean + + # Image hosting backend. Mirrors the deploy flake's services.pict-rs + # (modules/services/pict-rs.nix → port 6033). Webapp + extensions reach + # it on http://localhost:6033 from the host; in-network containers can + # use http://pict-rs:6033. + pict-rs: + image: asonix/pictrs:0.5 + hostname: pict-rs + restart: on-failure + user: "0:0" + environment: + PICTRS__SERVER__ADDRESS: 0.0.0.0:6033 + ports: + - 6033:6033 + volumes: + - ./data/pict-rs:/mnt