2022-02-07 14:21:59 +03:00
|
|
|
version: '3.9'
|
|
|
|
services:
|
|
|
|
redis:
|
|
|
|
image: sickp/alpine-redis:3.2.2
|
|
|
|
container_name: redis
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- redisdata:/data
|
|
|
|
networks:
|
|
|
|
- redis_network
|
|
|
|
|
2022-02-07 16:37:16 +03:00
|
|
|
backend:
|
2022-02-07 14:21:59 +03:00
|
|
|
build: .
|
2022-02-07 21:11:57 +03:00
|
|
|
container_name: django-dev
|
2022-02-07 14:21:59 +03:00
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
# - bitcoind-dev
|
|
|
|
# - lnd-dev
|
|
|
|
- redis
|
|
|
|
environment:
|
2022-02-07 21:11:57 +03:00
|
|
|
DEVELOPMENT: 1
|
2022-02-07 14:21:59 +03:00
|
|
|
volumes:
|
2022-02-07 21:11:57 +03:00
|
|
|
- .:/usr/src/robosats
|
|
|
|
- /mnt/development/database:/usr/src/database
|
2022-02-07 14:21:59 +03:00
|
|
|
networks:
|
|
|
|
- nginx_network
|
|
|
|
- redis_network
|
2022-02-07 21:11:57 +03:00
|
|
|
command: python3 manage.py runserver 0.0.0.0:8000
|
2022-02-07 16:37:16 +03:00
|
|
|
ports:
|
|
|
|
- 8000:8000
|
2022-02-07 14:21:59 +03:00
|
|
|
|
2022-02-07 16:37:16 +03:00
|
|
|
frontend:
|
2022-02-07 14:21:59 +03:00
|
|
|
build: ./frontend
|
|
|
|
container_name: npm-dev
|
|
|
|
restart: always
|
|
|
|
volumes:
|
2022-02-07 22:25:10 +03:00
|
|
|
- ./frontend:/usr/src/frontend
|
2022-02-07 14:21:59 +03:00
|
|
|
networks:
|
|
|
|
- nginx_network
|
|
|
|
- redis_network
|
|
|
|
|
2022-02-07 16:37:16 +03:00
|
|
|
clean-orders:
|
2022-02-07 21:11:57 +03:00
|
|
|
build: .
|
2022-02-07 14:21:59 +03:00
|
|
|
restart: always
|
|
|
|
container_name: clord-dev
|
2022-02-07 21:11:57 +03:00
|
|
|
command: python3 manage.py clean_orders
|
2022-02-07 14:21:59 +03:00
|
|
|
volumes:
|
2022-02-07 21:11:57 +03:00
|
|
|
- .:/usr/src/robosats
|
|
|
|
- /mnt/development/database:/usr/src/database
|
2022-02-07 14:21:59 +03:00
|
|
|
|
2022-02-07 16:37:16 +03:00
|
|
|
follow-invoices:
|
2022-02-07 21:11:57 +03:00
|
|
|
build: .
|
2022-02-07 14:21:59 +03:00
|
|
|
container_name: invo-dev
|
|
|
|
restart: always
|
|
|
|
# depends_on:
|
|
|
|
# - bitcoind-testnet
|
|
|
|
# - lnd-testnet
|
|
|
|
command: python3 manage.py follow_invoices
|
|
|
|
volumes:
|
2022-02-07 21:11:57 +03:00
|
|
|
- .:/usr/src/robosats
|
|
|
|
- /mnt/development/database:/usr/src/database
|
2022-02-07 14:21:59 +03:00
|
|
|
|
2022-02-07 16:37:16 +03:00
|
|
|
celery:
|
2022-02-07 21:11:57 +03:00
|
|
|
build: .
|
2022-02-07 14:21:59 +03:00
|
|
|
container_name: cbeat-dev
|
|
|
|
restart: always
|
|
|
|
command: celery -A robosats worker --beat -l info -S django
|
|
|
|
environment:
|
|
|
|
REDIS_URL: redis://redis:6379
|
|
|
|
volumes:
|
2022-02-07 21:11:57 +03:00
|
|
|
- .:/usr/src/robosats
|
|
|
|
- /mnt/development/database:/usr/src/database
|
2022-02-07 14:21:59 +03:00
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
networks:
|
|
|
|
- redis_network
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
redisdata:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
nginx_network:
|
|
|
|
driver: bridge
|
|
|
|
redis_network:
|
|
|
|
driver: bridge
|