robosats/docker-compose.yml

120 lines
2.7 KiB
YAML
Raw Normal View History

version: '3.9'
services:
redis:
image: redis:6.2.6
container_name: redis
restart: always
volumes:
- redisdata:/data
network_mode: service:tor
2022-02-07 13:37:16 +00:00
backend:
build: .
2022-02-07 18:11:57 +00:00
container_name: django-dev
restart: always
depends_on:
2022-02-08 11:41:03 +00:00
- bitcoind
- lnd
- redis
environment:
2022-02-07 18:11:57 +00:00
DEVELOPMENT: 1
volumes:
2022-02-07 18:11:57 +00:00
- .:/usr/src/robosats
- /mnt/development/database:/usr/src/database
- /mnt/development/lnd:/lnd
network_mode: service:tor
2022-02-07 13:37:16 +00:00
frontend:
build: ./frontend
container_name: npm-dev
restart: always
volumes:
2022-02-07 19:25:10 +00:00
- ./frontend:/usr/src/frontend
2022-02-07 13:37:16 +00:00
clean-orders:
2022-02-07 18:11:57 +00:00
build: .
restart: always
container_name: clord-dev
2022-02-07 18:11:57 +00:00
command: python3 manage.py clean_orders
volumes:
2022-02-07 18:11:57 +00:00
- .:/usr/src/robosats
- /mnt/development/database:/usr/src/database
network_mode: service:tor
2022-02-07 13:37:16 +00:00
follow-invoices:
2022-02-07 18:11:57 +00:00
build: .
container_name: invo-dev
restart: always
2022-02-08 11:41:03 +00:00
depends_on:
- bitcoind
- lnd
command: python3 manage.py follow_invoices
volumes:
2022-02-07 18:11:57 +00:00
- .:/usr/src/robosats
- /mnt/development/database:/usr/src/database
2022-02-09 20:51:05 +00:00
- /mnt/development/lnd:/lnd
network_mode: service:tor
2022-02-07 13:37:16 +00:00
celery:
2022-02-07 18:11:57 +00:00
build: .
container_name: cele-dev
restart: always
command: celery -A robosats worker --beat -l info -S django
environment:
REDIS_URL: redis://localhost:6379
volumes:
2022-02-07 18:11:57 +00:00
- .:/usr/src/robosats
- /mnt/development/database:/usr/src/database
network_mode: service:tor
2022-02-08 11:41:03 +00:00
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
2022-02-09 15:21:51 +00:00
ports:
- 8000:8000
2022-02-09 15:21:51 +00:00
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
2022-02-09 20:51:05 +00:00
AUTO_UNLOCK_PWD: ${AUTO_UNLOCK_PWD}
2022-02-08 11:41:03 +00:00
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
volumes:
redisdata: