forked from PlebeianApp/plebeian-market
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
70 lines (69 loc) · 1.74 KB
/
docker-compose.dev.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
version: '3.6'
services:
db:
volumes:
- target: /var/lib/postgresql/data
type: tmpfs
ports:
- "5432:5432"
relay:
volumes:
- target: /app/strfry-db
type: tmpfs
ports:
- "7777:7777"
smtp:
ports:
- "1587:587"
api:
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/api/status"]
interval: 3s
timeout: 3s
retries: 5
env_file: .env.dev
ports:
- "5000:5000"
volumes:
- "./api:/app"
command: bash -c "flask db upgrade && python3 ./main.py"
finalize-auctions:
depends_on:
api: # this is because in dev & test mode, the api is the one initializing the database, on start
condition: service_healthy
env_file: .env.dev
volumes:
- "./api:/app"
command: flask finalize-auctions
settle-btc-payments:
depends_on:
api: # this is because in dev & test mode, the api is the one initializing the database, on start
condition: service_healthy
env_file: .env.dev
volumes:
- "./api:/app"
command: flask settle-btc-payments
settle-lightning-payments:
depends_on:
api: # this is because in dev & test mode, the api is the one initializing the database, on start
condition: service_healthy
birdwatcher:
condition: service_healthy
env_file: .env.dev
volumes:
- "./api:/app"
command: flask settle-lightning-payments
birdwatcher:
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:6000/status &> /dev/null"]
interval: 3s
timeout: 3s
retries: 5
env_file: .env.dev
ports:
- "6000:6000"
volumes:
- "./birdwatcher:/app"
networks:
- relay_network
command: python main.py