forked from RoboSats/robosats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
137 lines (126 loc) · 2.96 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
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
version: '3.9'
services:
redis:
image: redis:6.2.6
container_name: redis
restart: always
volumes:
- redisdata:/data
network_mode: service:tor
backend:
build: .
container_name: django-dev
restart: always
depends_on:
- bitcoind
- lnd
- redis
environment:
DEVELOPMENT: 1
volumes:
- .:/usr/src/robosats
- /mnt/development/lnd:/lnd
network_mode: service:tor
frontend:
build: ./frontend
container_name: npm-dev
restart: always
volumes:
- ./frontend:/usr/src/frontend
clean-orders:
build: .
restart: always
container_name: clord-dev
command: python3 manage.py clean_orders
volumes:
- .:/usr/src/robosats
- /mnt/development/lnd:/lnd
network_mode: service:tor
follow-invoices:
build: .
container_name: invo-dev
restart: always
depends_on:
- bitcoind
- lnd
command: python3 manage.py follow_invoices
volumes:
- .:/usr/src/robosats
- /mnt/development/lnd:/lnd
network_mode: service:tor
telegram-watcher:
build: .
container_name: tg-dev
restart: always
command: python3 manage.py telegram_watcher
volumes:
- .:/usr/src/robosats
- /mnt/development/lnd:/lnd
network_mode: service:tor
celery:
build: .
container_name: cele-dev
restart: always
command: celery -A robosats worker --beat -l info -S django
environment:
REDIS_URL: redis://localhost:6379
volumes:
- .:/usr/src/robosats
network_mode: service:tor
tor:
build: ./docker/tor
container_name: tor-dev
restart: always
environment:
LOCAL_USER_ID: 1000
LOCAL_GROUP_ID: 1000
volumes:
- /mnt/development/tor/data:/var/lib/tor
- /mnt/development/tor/config:/etc/tor
ports:
- 8000:8000
lnd:
build: ./docker/lnd
restart: always
network_mode: service:tor
container_name: lnd-dev
depends_on:
- tor
- bitcoind
volumes:
- /mnt/development/tor/data:/var/lib/tor
- /mnt/development/tor/config:/etc/tor
- /mnt/development/lnd:/home/lnd/.lnd
- /mnt/development/lnd:/root/.lnd
command: lnd
environment:
LOCAL_USER_ID: 1000
LOCAL_GROUP_ID: 1000
LND_RPC_PORT: 10009
LND_REST_PORT: 8080
AUTO_UNLOCK_PWD: ${AUTO_UNLOCK_PWD}
bitcoind:
build: ./docker/bitcoind
container_name: btc-dev
restart: always
environment:
LOCAL_USER_ID: 1000
LOCAL_GROUP_ID: 1000
depends_on:
- tor
network_mode: service:tor
volumes:
- /mnt/development/tor/data:/var/lib/tor:ro
- /mnt/development/tor/config:/etc/tor:ro
- /mnt/development/bitcoin:/home/bitcoin/.bitcoin
postgres:
image: postgres:14.2-alpine
container_name: sql-dev
restart: always
environment:
POSTGRES_PASSWORD: example
network_mode: service:tor
volumes:
- ./db:/var/lib/postgresql/data
volumes:
redisdata: