-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
122 lines (114 loc) · 3.59 KB
/
docker-compose.yml
File metadata and controls
122 lines (114 loc) · 3.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
services:
magic-redis:
container_name: magic-redis
image: redis:7-alpine
restart: unless-stopped
magic-postgres:
image: postgres:16-alpine
container_name: magic-postgres
restart: unless-stopped
ports:
- 5432:5432
environment:
POSTGRES_USER: magic
POSTGRES_DB: magic
POSTGRES_PASSWORD: magic
volumes:
- magic_postgres_data:/var/lib/postgresql/data
magic-keycloak:
image: quay.io/keycloak/keycloak:25.0.6
container_name: magic-keycloak
restart: unless-stopped
command: start-dev
ports:
- 8080:8080
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
magic-btcpayserver:
restart: unless-stopped
container_name: magic-btcpayserver
image: btcpayserver/btcpayserver:2.3.5
environment:
BTCPAY_POSTGRES: User ID=postgres;Host=magic-btcpay-postgres;Port=5432;Application Name=btcpayserver;Database=btcpayserver${NBITCOIN_NETWORK:-regtest}
BTCPAY_EXPLORERPOSTGRES: User ID=postgres;Host=magic-btcpay-postgres;Port=5432;Application Name=btcpayserver;MaxPoolSize=80;Database=nbxplorer${NBITCOIN_NETWORK:-regtest}
BTCPAY_NETWORK: ${NBITCOIN_NETWORK:-regtest}
BTCPAY_BTCEXPLORERURL: http://magic-nbxplorer:32838
BTCPAY_CHEATMODE: true
BTCPAY_BIND: 0.0.0.0:49392
BTCPAY_VERBOSE: true
BTCPAY_DEBUGLOG: btcpay.log
BTCPAY_DOCKERDEPLOYMENT: true
extra_hosts:
- host.docker.internal:host-gateway
volumes:
- btcpay_datadir:/datadir
- nbxplorer_datadir:/root/.nbxplorer
- btcpay_pluginsdir:/root/.btcpayserver/Plugins
ports:
- 49392:49392
magic-bitcoind:
restart: unless-stopped
container_name: magic-bitcoind
image: btcpayserver/bitcoin:30.2
environment:
BITCOIN_NETWORK: ${NBITCOIN_NETWORK:-regtest}
BITCOIN_EXTRA_ARGS: |
rpcport=43782
rpcbind=0.0.0.0:43782
port=39388
whitelist=0.0.0.0/0
rpcallowip=0.0.0.0/0
rpcuser=magic
rpcpassword=magic
fallbackfee=0.00001
ports:
- 43782:43782
- 39388:39388
volumes:
- bitcoin_datadir:/home/bitcoin/.bitcoin
magic-nbxplorer:
restart: unless-stopped
container_name: magic-nbxplorer
image: nicolasdorier/nbxplorer:2.6.1
environment:
NBXPLORER_NETWORK: ${NBITCOIN_NETWORK:-regtest}
NBXPLORER_BIND: 0.0.0.0:32838
NBXPLORER_NOAUTH: true
NBXPLORER_EXPOSERPC: true
NBXPLORER_CHAINS: btc
NBXPLORER_BTCRPCURL: http://magic-bitcoind:43782/
NBXPLORER_BTCNODEENDPOINT: magic-bitcoind:39388
NBXPLORER_BTCRPCUSER: magic
NBXPLORER_BTCRPCPASSWORD: magic
NBXPLORER_POSTGRES: User ID=postgres;Host=magic-btcpay-postgres;Port=5432;Application Name=btcpayserver;MaxPoolSize=80;Database=nbxplorer${NBITCOIN_NETWORK:-regtest}
volumes:
- nbxplorer_datadir:/datadir
- bitcoin_datadir:/root/.bitcoin
magic-btcpay-postgres:
restart: unless-stopped
container_name: magic-btcpay-postgres
shm_size: 256mb
image: btcpayserver/postgres:18.1
command: ['-c', 'random_page_cost=1.0', '-c', 'shared_preload_libraries=pg_stat_statements']
environment:
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- btcpay_postgres_datadir:/var/lib/postgresql
magic-app:
image: node:24-alpine3.22
container_name: magic-app
restart: unless-stopped
working_dir: /app
command: npm run dev
ports:
- 3000:3000
volumes:
- .:/app
volumes:
btcpay_datadir:
btcpay_pluginsdir:
bitcoin_datadir:
nbxplorer_datadir:
btcpay_postgres_datadir:
magic_postgres_data: