Skip to content

Commit

Permalink
chore: rename .env files to .dev.env
Browse files Browse the repository at this point in the history
  • Loading branch information
okjodom committed Jan 7, 2025
1 parent a761b87 commit 9968ba3
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 44 deletions.
9 changes: 9 additions & 0 deletions apps/api/.dev.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
PORT=4000
NODE_ENV='development'
SWAP_GRPC_URL='swap:4040'
NOSTR_GRPC_URL='nostr:4050'
SMS_GRPC_URL='sms:4060'
SHARES_GRPC_URL='shares:4070'
SOLOWALLET_GRPC_URL='solowallet:4080'
REDIS_HOST='redis'
REDIS_PORT=6379
8 changes: 0 additions & 8 deletions apps/api/.env.manual

This file was deleted.

4 changes: 4 additions & 0 deletions apps/nostr/.dev.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
NODE_ENV='development'
NOSTR_GRPC_URL='nostr:4050'
NOSTR_PUBLIC_KEY=ce79848d6bd7cb0d7cfa18a81dc5f46459f5b7404d2489d0b60aa4069ff48dcb
NOSTR_PRIVATE_KEY=nsec1tlqwv9dupsn4d54zzagw66tp924uwgfr6cgzphv5atq8m66a63fq86hmr0
4 changes: 4 additions & 0 deletions apps/shares/.dev.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
NODE_ENV='development'
SHARES_GRPC_URL='shares:4070'
SHARES_ISSUED='10000'
DATABASE_URL=mongodb://bs:password@mongodb:27017
4 changes: 0 additions & 4 deletions apps/shares/.env.manual

This file was deleted.

2 changes: 1 addition & 1 deletion apps/sms/.env.manual → apps/sms/.dev.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
NODE_ENV='development'
SMS_GRPC_URL='0.0.0.0:4060'
SMS_GRPC_URL='sms:4060'
SMS_AT_API_KEY=5630171cd8c1a35ef67b07bbf1697feaad1a32d891cce6712271bf8c2815beea
SMS_AT_USERNAME=sandbox
SMS_AT_FROM='21000'
Expand Down
8 changes: 4 additions & 4 deletions apps/solowallet/.env.manual → apps/solowallet/.dev.env
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
NODE_ENV='development'
SOLOWALLET_GRPC_URL='0.0.0.0:4080'
SWAP_GRPC_URL='0.0.0.0:4040'
DATABASE_URL=mongodb://bs:password@0.0.0.0:27017
FEDIMINT_CLIENTD_BASE_URL=http://swap-clientd:7070
SOLOWALLET_GRPC_URL='solowallet:4080'
SWAP_GRPC_URL='swap:4040'
DATABASE_URL=mongodb://bs:password@mongodb:27017
FEDIMINT_CLIENTD_BASE_URL=http://clientd:7070
FEDIMINT_CLIENTD_PASSWORD=fmcdpass
FEDIMINT_FEDERATION_ID=596ab5a5456376f925d145a2ef038cc5a70b99be7d2d0eb30feca5e849ecd351
FEDIMINT_GATEWAY_ID=03187672262e17300f4822bb64c18ef74a266ebe1780631543b188537f9cf4a904
8 changes: 4 additions & 4 deletions apps/swap/.env.manual → apps/swap/.dev.env
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
NODE_ENV='development'
SWAP_GRPC_URL='0.0.0.0:4040'
REDIS_HOST='0.0.0.0'
SWAP_GRPC_URL='swap:4040'
REDIS_HOST='redis'
REDIS_PORT='6379'
MOCK_BTC_KES_RATE='8708520.117232416'
# CURRENCY_API_KEY='foo-bar-baz'
DATABASE_URL=mongodb://bs:password@0.0.0.0:27017
DATABASE_URL=mongodb://bs:password@mongodb:27017
INTASEND_PUBLIC_KEY=ISPubKey_test_925ab885-f06d-4ace-8507-4186413a59a4
INTASEND_PRIVATE_KEY=ISSecretKey_test_3d887e44-33c4-4455-978e-d2ae7b10907d
FEDIMINT_CLIENTD_BASE_URL=http://0.0.0.0:7070
FEDIMINT_CLIENTD_BASE_URL=http://clientd:7070
FEDIMINT_CLIENTD_PASSWORD=fmcdpass
FEDIMINT_FEDERATION_ID=596ab5a5456376f925d145a2ef038cc5a70b99be7d2d0eb30feca5e849ecd351
FEDIMINT_GATEWAY_ID=03187672262e17300f4822bb64c18ef74a266ebe1780631543b188537f9cf4a904
24 changes: 13 additions & 11 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
depends_on:
- mongodb
env_file:
- ./apps/api/.env
- ./apps/api/.dev.env
ports:
- '4000:4000'
volumes:
Expand All @@ -28,11 +28,11 @@ services:
]
restart: always
depends_on:
- swap-clientd
- clientd
- mongodb
- redis
env_file:
- ./apps/swap/.env
- ./apps/swap/.dev.env
ports:
- '4040:4040'
volumes:
Expand All @@ -54,7 +54,7 @@ services:
- mongodb
- redis
env_file:
- ./apps/nostr/.env
- ./apps/nostr/.dev.env
ports:
- '4050:4050'
volumes:
Expand All @@ -76,7 +76,7 @@ services:
- mongodb
- redis
env_file:
- ./apps/sms/.env
- ./apps/sms/.dev.env
ports:
- '4060:4060'
volumes:
Expand All @@ -98,7 +98,7 @@ services:
- mongodb
- redis
env_file:
- ./apps/shares/.env
- ./apps/shares/.dev.env
ports:
- '4070:4070'
volumes:
Expand All @@ -121,7 +121,7 @@ services:
- mongodb
- redis
env_file:
- ./apps/solowallet/.env
- ./apps/solowallet/.dev.env
ports:
- '4080:4080'
volumes:
Expand All @@ -145,20 +145,22 @@ services:
ports:
- '6379:6379'
restart: always
swap-clientd:

clientd:
image: okjodom/fedimint-clientd:v0.4.0
container_name: swap-clientd
container_name: clientd
environment:
- FEDIMINT_CLIENTD_DB_PATH=/var/lib/clientd
- FEDIMINT_CLIENTD_PASSWORD=fmcdpass
- FEDIMINT_CLIENTD_ADDR=0.0.0.0:7070
- FEDIMINT_CLIENTD_ADDR=clientd:7070
- FEDIMINT_CLIENTD_MODE=rest
- FEDIMINT_CLIENTD_INVITE_CODE=fed11qgqrwdthwden5te0v9cxjttndakk2ttrdpjk2um994erx7rsx568vur9dy68z6pnvd6xg63hwsh8wmn90p6zuctswqhsqqfqt94ttf29vdm0jfw3gk3w7quvcknshxd705ksavc0ajj7sj0v6dgsxcydnc
ports:
- 0.0.0.0:7070:7070
- 7070:7070
volumes:
- swap_clientd_datadir:/var/lib/clientd
restart: always

volumes:
mongodb_datadir:
swap_clientd_datadir:
3 changes: 0 additions & 3 deletions scripts/api.manual.dev.sh

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/shares.manual.dev.sh

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/sms.manual.dev.sh

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/swap.manual.dev.sh

This file was deleted.

0 comments on commit 9968ba3

Please sign in to comment.