-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
54 lines (48 loc) · 1.34 KB
/
docker-compose.yml
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
version: "3.7"
services:
redis:
image: redis:latest
command:
- redis-server
- redis.conf
- --requirepass
- ${REDIS_PASS}
- --appendonly yes
volumes:
- ./data/redis:/data
frontend:
image: lightning-swap-frontend:latest
build: ./frontend
container_name: lightning-swap-frontend
ports:
- 5173:5173
volumes:
- ./frontend/src:/app/src
restart: on-failure
stop_grace_period: 1m
backend:
image: lightning-swap-backend:latest
build: ./backend
container_name: lightning-swap-backend
ports:
- 1536:1536
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASS=${REDIS_PASS}
- LND_HOST=${LND_HOST}
- LND_MACAROON=${LND_MACAROON}
- SWAP_SERVICE_FEERATE=${SWAP_SERVICE_FEERATE}
- SWAP_MAX_AMOUNT=${SWAP_MAX_AMOUNT}
- SWAP_MIN_AMOUNT=${SWAP_MIN_AMOUNT}
- LNBITS_HOST=${LNBITS_HOST}
- LNBITS_WEBHOOK_URL=${LNBITS_WEBHOOK_URL}
- LNBITS_MAIN_WALLET_ADMIN_KEY=${LNBITS_MAIN_WALLET_ADMIN_KEY}
- LNBITS_MAIN_WALLET_INVOICE_KEY=${LNBITS_MAIN_WALLET_INVOICE_KEY}
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./data/backend/database.db:/root/vinci/data/database.db
- ./backend:/app
restart: on-failure
stop_grace_period: 1m