-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (71 loc) · 1.4 KB
/
Copy pathdocker-compose.yml
File metadata and controls
76 lines (71 loc) · 1.4 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
version: "3.8"
services:
app:
build:
context: ./server
dockerfile: Dockerfile
ports:
- "5001:5000"
depends_on:
- redis
environment:
- FLASK_ENV=production
volumes:
- ./server:/app
restart: unless-stopped
env_file: server/api.env
command: python main.py
redis:
image: redis:alpine
ports:
- "6379:6379"
restart: unless-stopped
celery_stream:
build: ./server
depends_on:
- redis
- app
env_file: server/api.env
environment:
- REDIS_URL=redis://redis:6379
volumes:
- ./server:/app
command: >
celery -A tasks worker
--loglevel=info
--pool=threads
--concurrency=8
-Q stream
restart: unless-stopped
celery_background:
build:
context: ./server
dockerfile: Dockerfile
depends_on:
- redis
- app
environment:
- REDIS_URL=redis://redis:6379
volumes:
- ./server:/app
command: >
celery -A tasks worker
--loglevel=info
--pool=threads
--concurrency=16
-Q background
restart: unless-stopped
proxy:
build:
context: ./proxy
dockerfile: Dockerfile
depends_on:
- app
environment:
PODBLOCK_SERVER: "http://app:5000"
ports:
- "8080:8080"
- "8081:8081"
volumes:
- ./proxy:/proxy
restart: unless-stopped