-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (52 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
52 lines (52 loc) · 1.11 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
version: '3'
services:
host-injector:
container_name: host_c
volumes:
- '/var/run/docker.sock:/tmp/docker.sock'
- '/etc/hosts:/tmp/hosts'
image: dvdarias/docker-hoster
redis:
hostname: redis.wlp.com
image: redis:latest
container_name: rd01
ports:
- "6379:6379"
volumes:
- "redis:/data"
worker:
hostname: celery.wlp.com
depends_on:
- "redis"
build:
context: .
dockerfile: celery.Dockerfile
volumes:
- .:/opt/metadata-extraction
command: celery -A config.client worker --loglevel=info -f celery.logs -Ofair -c 2
tty: true
app:
hostname: app.wlp.com
depends_on:
- "redis"
build:
context: .
dockerfile: app.Dockerfile
volumes:
- .:/opt/metadata-extraction
container_name: app01
ports:
- "6767:6767"
command: python3 tenant/server.py
tty: true
flower:
hostname: flower.wlp.com
image: mher/flower
container_name: flower01
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- FLOWER_PORT=8888
ports:
- "8888:8888"
volumes:
redis: