-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
49 lines (49 loc) · 1.09 KB
/
docker-compose.yml
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
version: '2.0'
services:
rabbitmq:
image: rabbitmq:3-management
hostname: rabbitmq
volumes:
- './.data:/var/lib/rabbitmq'
ports:
- '5672:5672'
- '15672:15672'
env_file:
- config/.env
networks:
- crawlolx
#command: "/usr/local/bin/rabbitmqadmin declare queue name=$RABBITMQ_DEFAULT_QUEUE durable=true -u $RABBITMQ_DEFAULT_USER -p $RABBITMQ_DEFAULT_PASS"
servicewa:
hostname: servicewa
build:
context: .
dockerfile: serviceSendTextMessage/Dockerfile
volumes:
- './.data/WhatsAppSession:/tmp/WhatsAppSession'
env_file:
- config/.env
networks:
- crawlolx
tty: true
command: /code/serviceSendTextMessage/serviceSendTextMessage
depends_on:
- rabbitmq
servicecrawl:
hostname: serivicecrawl
build:
context: .
dockerfile: crawl-olx/Dockerfile
networks:
- crawlolx
volumes:
- './config:/code/config'
tty: true
env_file:
- config/.env
command: crond -l 2 -f
depends_on:
- rabbitmq
volumes:
devshm: null
networks:
crawlolx: null