-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
50 lines (47 loc) · 1.18 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
50
version: "3.8"
services:
gis-restaurant-rabbitmq:
image: rabbitmq
container_name: gis-restaurant-rabbitmq
ports:
- "5672:5672"
networks:
- restaurant-network
gis-restaurant-celery:
image: gis-restaurant-celery
container_name: gis-restaurant-celery
depends_on:
- gis-restaurant-rabbitmq
build:
context: .
dockerfile: ./Dockerfile
command: celery -A config worker -l info
volumes:
- .:/gis-restaurant
env_file:
- ./.env
environment:
- CELERY_BROKER_URL=amqp://gis-restaurant-rabbitmq:5672
networks:
- restaurant-network
gis-restaurant-celery-beat:
image: gis-restaurant-celery-beat
container_name: gis-restaurant-celery-beat
depends_on:
- gis-restaurant-rabbitmq
- gis-restaurant-celery
build:
context: .
dockerfile: ./Dockerfile
command: celery -A config beat -l info
volumes:
- .:/gis-restaurant
env_file:
- ./.env
environment:
- CELERY_BROKER_URL=amqp://gis-restaurant-rabbitmq:5672
networks:
- restaurant-network
networks:
restaurant-network:
driver: bridge