-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
108 lines (99 loc) · 2.04 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
108 lines (99 loc) · 2.04 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: "3.8"
services:
api:
build:
context: ./api/
dockerfile: Dockerfile.dev
container_name: wolfwatch_api
restart: unless-stopped
volumes:
- "./api:/usr/src/app"
ports:
- 4001:3001
depends_on:
- mysql
env_file:
- .env.development
client:
build:
context: ./client/
dockerfile: Dockerfile.dev
container_name: wolfwatch_frontend
restart: unless-stopped
ports:
- 4000:3000
depends_on:
- api
volumes:
- "./client:/usr/src/app"
- "/usr/src/app/node_modules"
nginx:
build:
context: ./nginx/
restart: unless-stopped
container_name: wolfwatch_nginx
ports:
- 80:80
depends_on:
- api
- client
- scheduler
mysql:
build:
context: ./database/
dockerfile: Dockerfile.dev
restart: always
container_name: wolfwatch_database
ports:
- 4306:3306
volumes:
- mysql_data:/var/lib/mysql
env_file:
- .env.development
redis:
image: redis:latest
restart: always
container_name: wolfwatch_redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
scheduler:
build:
context: ./scraping/
dockerfile: Dockerfile.dev
container_name: wolfwatch_scheduler
restart: unless-stopped
ports:
- 4002:3002
depends_on:
- redis
volumes:
- "./scraping:/app"
env_file:
- .env.development
celery_worker:
build:
context: ./scraping/
command: -A TaskScheduler worker --loglevel=info
container_name: wolfwatch_scan_worker
entrypoint: celery
restart: unless-stopped
depends_on:
- redis
volumes:
- "./scraping:/app"
celery_beat:
build:
context: ./scraping/
command: -A Tasks beat --loglevel=debug --scheduler redbeat.RedBeatScheduler
container_name: wolfwatch_scan_manager
entrypoint: celery
restart: unless-stopped
depends_on:
- redis
volumes:
- "./scraping:/app"
volumes:
mysql_data:
redis_data: