-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
57 lines (53 loc) · 1015 Bytes
/
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
51
52
53
54
55
56
57
version: "3.9" # optional since v1.27.0
services:
frontend:
build:
context: frontend/
dockerfile: Dockerfile
container_name: frontend
image: frontend:latest
ports:
- 8080:80
restart: "no"
depends_on:
- core
networks:
- cars-network
producer:
build:
context: backend/amq-producer/
dockerfile: Dockerfile
container_name: producer
image: producer:latest
ports:
- 8082:8082
restart: "no"
depends_on:
- rabbit
networks:
- cars-network
core:
build:
context: backend/core/
dockerfile: Dockerfile
container_name: core
image: core:latest
ports:
- 8081:8081
restart: "no"
depends_on:
- rabbit
networks:
- cars-network
rabbit:
image: rabbitmq:3.8.14-management
container_name: rabbit
ports:
- 15672:15672
- 5672:5672
restart: "no"
networks:
- cars-network
networks:
cars-network:
driver: bridge