-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
55 lines (53 loc) · 1.09 KB
/
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
53
54
55
services:
web:
container_name: web
build:
context: .
dockerfile: Dockerfile
volumes:
- type: bind
source: ./flow2and4
target: /app/flow2and4
- type: bind
source: ./instance
target: /app/instance
expose:
- "8000"
nginx:
container_name: nginx
image: nginx:1.23.4-alpine
restart: always
ports:
- "80:80"
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- web
redis:
image: redis:latest
expose:
- "6379"
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 30s
retries: 50
start_period: 30s
restart: always
worker:
container_name: worker
environment:
- CELERY_MODE=prodlike
build:
context: .
dockerfile: Dockerfile
volumes:
- type: bind
source: ./flow2and4
target: /app/flow2and4
- type: bind
source: ./instance
target: /app/instance
command: celery -A make_celery worker --loglevel INFO
depends_on:
- redis