-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
47 lines (42 loc) · 1.06 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
version: '3.4'
networks:
service_network:
services:
redis:
image: "redis"
ports:
- 6379:6379
networks:
- service_network
consumerservice:
image: ${DOCKER_REGISTRY-}jobqueueconsumerservice
container_name: consumerservice
ports:
- 9000:80
networks:
- service_network
build:
context: .
dockerfile: JobQueue.ConsumerService/Dockerfile
environment:
- ConnectionStrings__RedisConnection=redis:6379
- JobApi__BaseAddress=http://producerservice
producerservice:
image: ${DOCKER_REGISTRY-}jobqueueproducerservice
container_name: producerservice
build:
context: .
dockerfile: JobQueue.ProducerService/Dockerfile
networks:
- service_network
workerservice:
image: ${DOCKER_REGISTRY-}workerservice
networks:
- service_network
build:
context: .
dockerfile: JobQueue.WorkerService/Dockerfile
environment:
- ConnectionStrings__RedisConnection=redis:6379
- Hangfire__0__WorkerCount=10
- Hangfire__1__WorkerCount=5