-
Notifications
You must be signed in to change notification settings - Fork 70
/
docker-compose.yml
57 lines (57 loc) · 1.86 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
services:
db:
build: .
volumes:
- .:/code
command: poetry run python manage.py migrate
server:
container_name: server
build: .
volumes:
- .:/code
ports:
- "8000:8000"
command: poetry run watchmedo auto-restart --recursive --pattern="*.py;*.env;*.html" --directory="." -- python manage.py runserver -- --nostatic 0.0.0.0:8000
depends_on:
db:
condition: service_completed_successfully
watch_transactions:
container_name: watch_transactions
network_mode: host
build: .
volumes:
- .:/code
depends_on:
db:
condition: service_completed_successfully
command: poetry run watchmedo auto-restart --recursive --pattern="*.py;*.env" --directory="." -- python manage.py watch_transactions
process_pending_deposits:
container_name: process_pending_deposits
network_mode: host
build: .
volumes:
- .:/code
depends_on:
db:
condition: service_completed_successfully
command: poetry run watchmedo auto-restart --recursive --pattern="*.py;*.env" --directory="." -- python manage.py process_pending_deposits
poll_outgoing_transactions:
container_name: poll_outgoing_transactions
network_mode: host
build: .
volumes:
- .:/code
depends_on:
db:
condition: service_completed_successfully
command: poetry run watchmedo auto-restart --recursive --pattern="*.py;*.env" --directory="." -- python manage.py poll_outgoing_transactions -- --loop
execute_outgoing_transactions:
container_name: execute_outgoing_transactions
network_mode: host
build: .
volumes:
- .:/code
depends_on:
db:
condition: service_completed_successfully
command: poetry run watchmedo auto-restart --recursive --pattern="*.py;*.env" --directory="." -- python manage.py execute_outgoing_transactions -- --loop