-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.example.yml
70 lines (64 loc) · 1.9 KB
/
docker-compose.dev.example.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
services:
metadata_worker:
build: .
entrypoint: ["npx", "ts-node", "metadata_worker.ts", "--verbose"]
volumes:
- ./banner-shots:/app/banner-shots
- ./campaign_info.example.toml:/app/campaign_info.toml
depends_on:
- rabbitmq
environment:
QUEUE_URL: amqp://rabbitmq
# Run multiple instances of screenshot worker to parallelize screenshot jobs.
# Should be less than 5 to be sure not to run into limits
screenshot_worker_1:
build: .
entrypoint: [ "npx", "ts-node", "screenshot_worker.ts", "--verbose" ]
volumes:
- ./banner-shots:/app/banner-shots
- ./campaign_info.example.toml:/app/campaign_info.toml
depends_on:
- rabbitmq
environment:
QUEUE_URL: amqp://rabbitmq
TB_KEY: ${TB_KEY}
TB_SECRET: ${TB_SECRET}
screenshot_worker_2:
build: .
entrypoint: [ "npx", "ts-node", "screenshot_worker.ts", "--verbose" ]
volumes:
- ./banner-shots:/app/banner-shots
- ./campaign_info.example.toml:/app/campaign_info.toml
depends_on:
- rabbitmq
environment:
QUEUE_URL: amqp://rabbitmq
TB_KEY: ${TB_KEY}
TB_SECRET: ${TB_SECRET}
screenshot_worker_3:
build: .
entrypoint: [ "npx", "ts-node", "screenshot_worker.ts", "--verbose" ]
volumes:
- ./banner-shots:/app/banner-shots
- ./campaign_info.example.toml:/app/campaign_info.toml
depends_on:
- rabbitmq
environment:
QUEUE_URL: amqp://rabbitmq
TB_KEY: ${TB_KEY}
TB_SECRET: ${TB_SECRET}
screenshot_worker_4:
build: .
entrypoint: [ "npx", "ts-node", "screenshot_worker.ts", "--verbose" ]
volumes:
- ./banner-shots:/app/banner-shots
- ./campaign_info.example.toml:/app/campaign_info.toml
depends_on:
- rabbitmq
environment:
QUEUE_URL: amqp://rabbitmq
TB_KEY: ${TB_KEY}
TB_SECRET: ${TB_SECRET}
rabbitmq:
ports:
- "5672:5672"