Repository navigation
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
75 lines (70 loc) · 1.62 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
75 lines (70 loc) · 1.62 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
services:
image-processor:
build:
context: .
dockerfile: docker/Dockerfile
networks:
- fashion_network
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
- "4000:8000"
volumes:
- .:/app
labels:
- "traefik.enable=true"
- "traefik.http.routers.image-processor.rule=Host(`${APP_HOST}`)"
- "traefik.http.routers.image-processor.entrypoints=websecure"
- "traefik.http.routers.image-processor.service=image-processor"
- "traefik.http.routers.image-processor.tls=true"
- "traefik.http.services.image-processor.loadbalancer.server.port=8000"
celery-worker:
build:
context: .
dockerfile: docker/Dockerfile
command: celery -A app.celery_config.celery_app worker --loglevel=info --concurrency=${CELERY_WORKER_CONCURRENCY:-4}
depends_on:
- redis
volumes:
- .:/app
networks:
- fashion_network
labels:
- "traefik.enable=false"
redis:
image: 'redis:alpine'
volumes:
- 'image-processor-redis:/data'
networks:
- fashion_network
healthcheck:
test:
- CMD
- redis-cli
- ping
retries: 3
timeout: 5s
labels:
- "traefik.enable=false"
qdrant:
image: qdrant/qdrant:latest
restart: always
ports:
- 6333:6333
- 6334:6334
expose:
- 6333
- 6334
- 6335
volumes:
- qdrant-storage:/qdrant/storage
networks:
- fashion_network
labels:
- "traefik.enable=false"
networks:
fashion_network:
external: true
volumes:
image-processor-redis:
qdrant-storage: