-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
90 lines (90 loc) · 2.17 KB
/
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
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
volumes:
db:
name: mpt-db
networks:
zenshi:
name: zenshi-vps_default
external: true
services:
updater:
container_name: mpt-updater
command: bun run updater.js
mem_limit: 512m
restart: unless-stopped
build:
context: .
environment:
R2_BUCKET_NAME: mpt-stashes-prod
poe_client_id: ${poe_client_id}
poe_client_secret: ${poe_client_secret}
CLOUDFLARE_ACCOUNT_ID: ${CLOUDFLARE_ACCOUNT_ID}
CLOUDFLARE_API_TOKEN: ${CLOUDFLARE_API_TOKEN}
CLOUDFLARE_R2_KEY_ID: ${CLOUDFLARE_R2_KEY_ID}
CLOUDFLARE_R2_KEY_SECRET: ${CLOUDFLARE_R2_KEY_SECRET}
AWS_REGION: ${AWS_REGION}
NODE_ENV: production
volumes:
- type: volume
source: db
target: /home/bun/app/db
logging:
driver: local
scrapper:
container_name: mpt-scrapper
command: bun run scrapper.js
mem_limit: 512m
restart: unless-stopped
build:
context: .
environment:
R2_BUCKET_NAME: mpt-stashes-prod
poe_client_id: ${poe_client_id}
poe_client_secret: ${poe_client_secret}
CLOUDFLARE_ACCOUNT_ID: ${CLOUDFLARE_ACCOUNT_ID}
CLOUDFLARE_API_TOKEN: ${CLOUDFLARE_API_TOKEN}
CLOUDFLARE_R2_KEY_ID: ${CLOUDFLARE_R2_KEY_ID}
CLOUDFLARE_R2_KEY_SECRET: ${CLOUDFLARE_R2_KEY_SECRET}
AWS_REGION: ${AWS_REGION}
NODE_ENV: production
volumes:
- type: volume
source: db
target: /home/bun/app/db
logging:
driver: local
studio:
container_name: mpt-studio
image: coleifer/sqlite-web
command: sqlite_web --host 0.0.0.0 --port 8082 /data/mpt.db
environment:
NODE_ENV: production
ports:
- 8082:8082
volumes:
- type: volume
source: db
target: /data
restart: unless-stopped
logging:
driver: local
networks:
- zenshi
webapp:
container_name: mpt-app
build:
context: .
command: bun run api.js
environment:
PORT: 4000
NODE_ENV: production
ports:
- 4000:4000
volumes:
- type: volume
source: db
target: /home/bun/app/db
restart: unless-stopped
logging:
driver: local
networks:
- zenshi