-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.staging.yml
93 lines (90 loc) · 2.3 KB
/
docker-compose.staging.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
version: '3.6'
services:
db:
volumes:
- "/home/www/plebeian-market-dbdata:/var/lib/postgresql/data"
relay:
volumes:
- "/home/www/plebeian-market-relaydata:/app/strfry-db"
ports:
- "7777:7777"
networks:
- proxy
smtp:
ports:
- "1587:587"
environment:
- ALLOWED_SENDER_DOMAINS=staging.plebeian.market
api:
healthcheck:
test: ["CMD", "curl", "-f", "https://staging.plebeian.market/api/status"]
interval: 3s
timeout: 3s
retries: 5
env_file: .env.staging
environment:
- S3_FILENAME_PREFIX=STAGING_
volumes:
- "/home/www/plebeian-market-secrets:/secrets"
- "/home/www/plebeian-market-state:/state"
command: gunicorn --chdir /app main:app -w 2 --threads 2 -b 0.0.0.0:8080
web:
build:
context: ./
dockerfile: web/Dockerfile
args:
- BUILD_MODE=-staging
env_file: .env.staging
restart: always
depends_on:
- api
networks:
- proxy
volumes:
- "front-office-app:/front-office-app"
nginx:
build:
context: ./
dockerfile: ./services/nginx/Dockerfile
restart: always
environment:
- VIRTUAL_HOST=staging.plebeian.market
- LETSENCRYPT_HOST=staging.plebeian.market
depends_on:
- api
- web
networks:
- proxy
volumes:
- "front-office-app:/front-office-app"
- "/home/www/plebeian-market-state/media:/media"
finalize-auctions:
env_file: .env.staging
volumes:
- "/home/www/plebeian-market-secrets:/secrets"
- "/home/www/plebeian-market-state:/state"
command: flask finalize-auctions
settle-btc-payments:
env_file: .env.staging
volumes:
- "/home/www/plebeian-market-secrets:/secrets"
- "/home/www/plebeian-market-state:/state"
command: flask settle-btc-payments
settle-lightning-payments:
env_file: .env.staging
volumes:
- "/home/www/plebeian-market-secrets:/secrets"
- "/home/www/plebeian-market-state:/state"
- "./api:/app"
command: flask settle-lightning-payments
birdwatcher:
env_file: .env.staging
volumes:
- "/home/www/plebeian-market-secrets:/secrets"
- "/home/www/plebeian-market-state:/state"
command: python main.py
networks:
proxy:
external: true
volumes:
front-office-app: