-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
52 lines (47 loc) · 1.23 KB
/
docker-compose.yaml
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
version: '3.7'
services:
scrapyd:
build:
context: ./scrapyd
args:
- USERNAME=user
- PASSWORD=pass
init: true
restart: always
ports:
- 6800:6800
environment:
- DATA_DIR=/var/lib/scrapyd
- TZ=America/Sao_Paulo
volumes:
- scrapyd_data:/var/lib/scrapyd
networks:
- scrapyd_network
scrapydweb:
build: ./scrapydweb
init: true
restart: always
ports:
- 5000:5000
environment:
- USERNAME=user
- PASSWORD=pass
- SCRAPYD_SERVERS=user:pass@scrapyd:6800
- LOCAL_SCRAPYD_SERVER=scrapyd:6800
- LOCAL_SCRAPYD_LOGS_DIR=/var/lib/scrapyd/logs
- TELNET_CONSOLE_HOST=scrapyd
- DATA_PATH=/var/lib/scrapydweb/data
- TZ=America/Sao_Paulo
volumes:
- scrapydweb_data:/var/lib/scrapydweb/data
- scrapyd_data:/var/lib/scrapyd
networks:
- scrapyd_network
depends_on:
- scrapyd
volumes:
scrapyd_data:
scrapydweb_data:
networks:
scrapyd_network:
driver: bridge