Skip to content

Commit

Permalink
feat: add profiles for ci (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
maybeast authored Aug 1, 2024
1 parent e17c2e7 commit c99113f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
COMPOSE_PROFILES=default
SCRIPTS_IMAGE=boltz/scripts:latest
LND_IMAGE=boltz/lnd:latest
CLN_IMAGE=boltz/c-lightning:latest
Expand Down
22 changes: 21 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ services:
restart: no
container_name: boltz-cleanup
entrypoint: [ "/bin/bash", "-c", "/cleanup.sh" ]
profiles: ["default", "ci"]

postgres:
hostname: postgres
Expand All @@ -94,6 +95,7 @@ services:
- POSTGRES_DB=boltz
- POSTGRES_USER=boltz
- POSTGRES_PASSWORD=boltz
profiles: ["default", "ci"]

boltz-backend:
hostname: boltz
Expand All @@ -120,6 +122,7 @@ services:
retries: 10
interval: 1s
start_period: 0s
profiles: ["default", "ci"]

boltz-web-app:
hostname: web-app
Expand All @@ -130,7 +133,8 @@ services:
restart: always
image: ${BOLTZ_WEBAPP_IMAGE}
ports:
- 8080:80
- 8080:80
profiles: ["default"]

boltz-client:
hostname: boltz-client
Expand All @@ -153,6 +157,7 @@ services:
- cln2-data:/root/.lightning
- elements-data:/root/.elements
- boltz-client-data:/root/.boltz
profiles: ["default", "ci"]

anvil:
hostname: anvil
Expand All @@ -168,6 +173,7 @@ services:
retries: 3
interval: 1s
start_period: 0s
profiles: ["default", "ci"]

rif-relay:
hostname: rif-relay
Expand All @@ -184,6 +190,7 @@ services:
start_period: 15s
ports:
- 8090:8090
profiles: ["default", "ci"]

bitcoind:
container_name: boltz-bitcoind
Expand Down Expand Up @@ -215,6 +222,7 @@ services:
retries: 1
interval: 1s
start_period: 0s
profiles: ["default", "ci"]

elementsd:
container_name: boltz-elementsd
Expand All @@ -238,6 +246,7 @@ services:
retries: 1
interval: 1s
start_period: 0s
profiles: ["default", "ci"]

cln-1:
container_name: boltz-cln-1
Expand All @@ -247,6 +256,7 @@ services:
- 9736:9736
volumes:
- cln1-data:/root/.lightning
profiles: ["default", "ci"]

cln-2:
container_name: boltz-cln-2
Expand All @@ -256,6 +266,7 @@ services:
- 9737:9736
volumes:
- cln2-data:/root/.lightning
profiles: ["default", "ci"]

lnd-1:
<<: *base-lnd
Expand All @@ -266,6 +277,7 @@ services:
- 10009:10009
volumes:
- lnd1-data:/root/.lnd/
profiles: ["default", "ci"]

lnd-2:
<<: *base-lnd
Expand All @@ -275,6 +287,7 @@ services:
- 11009:10009
volumes:
- lnd2-data:/root/.lnd/
profiles: ["default", "ci"]

bitcoind-init:
<<: *base-scripts
Expand All @@ -283,6 +296,7 @@ services:
entrypoint: [ "/bin/bash", "-c", "source /etc/profile.d/utils.sh && bitcoind-init" ]
depends_on:
- bitcoind
profiles: ["default", "ci"]

regtest-start:
<<: *base-scripts
Expand All @@ -306,6 +320,7 @@ services:
condition: service_healthy
rif-relay:
condition: service_healthy
profiles: ["default", "ci"]

scripts:
<<: *base-scripts
Expand All @@ -314,6 +329,7 @@ services:
depends_on:
boltz-client:
condition: service_healthy
profiles: ["default", "ci"]

electrs:
hostname: electrs-bitcoin
Expand Down Expand Up @@ -345,6 +361,7 @@ services:
- 3002:3002
volumes:
- bitcoin-data:/root/.bitcoin
profiles: ["default", "ci"]

electrs-liquid:
hostname: electrs-liquid
Expand Down Expand Up @@ -382,6 +399,7 @@ services:
- 3003:3003
volumes:
- elements-data:/root/.elements
profiles: ["default", "ci"]

esplora:
hostname: esplora
Expand All @@ -396,6 +414,7 @@ services:
ports:
- 4002:4002
- 4003:4003
profiles: ["default"]

otterscan:
hostname: otterscan
Expand All @@ -409,6 +428,7 @@ services:
condition: service_healthy
ports:
- 5100:80
profiles: ["default"]

volumes:
boltz-data:
Expand Down

0 comments on commit c99113f

Please sign in to comment.