-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (76 loc) · 1.48 KB
/
docker-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
version: '3'
services:
splash:
image: scrapinghub/splash
networks:
- bridge1
ports:
- "8050:8050"
redis:
image: library/redis:5.0-alpine
restart: unless-stopped
networks:
- bridge1
db:
image: library/postgres:11.1-alpine
restart: unless-stopped
networks:
- bridge1
ports:
- "5432:5432"
environment:
- POSTGRES_USER=django
- POSTGRES_PASSWORD=django
web:
build:
context: .
dockerfile: ./Dockerfile
image: umrashrf/address_manager
restart: unless-stopped
networks:
- bridge1
ports:
- "8000:8000"
depends_on:
- "db"
- "splash"
env_file: common.env
scrapyd:
image: umrashrf/address_manager
command: scrapyd
restart: unless-stopped
networks:
- bridge1
ports:
- "6800:6800"
env_file: common.env
depends_on:
- "web"
- "splash"
celery:
image: umrashrf/address_manager
command: celery -A address_manager worker -E -l info
restart: unless-stopped
networks:
- bridge1
env_file: common.env
depends_on:
- "db"
- "web"
- "redis"
- "scrapyd"
celery_beat:
image: umrashrf/address_manager
command: celery -A address_manager beat -l info -S django
restart: unless-stopped
networks:
- bridge1
env_file: common.env
depends_on:
- "db"
- "web"
- "redis"
- "scrapyd"
networks:
bridge1:
driver: bridge