-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (50 loc) · 1.22 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
51
52
53
54
55
56
version: '3'
services:
rabbitmq:
image: "rabbitmq:3.12-management"
ports:
- 5672:5672
- 15672:15672
volumes:
- rabbit_data:/var/lib/rabbitmq
- ./rabbitmq/definitions.json:/tmp/definitions.json
- ./rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
environment:
- RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=-rabbitmq_management load_definitions "/tmp/definitions.json" path_prefix "/rabbit"
networks:
- communication-network
server:
depends_on:
- rabbitmq
restart: always
container_name: communication-microservice-backend
image: communication-microservice-backend:latest
build:
context: .
dockerfile: server/docker/Dockerfile
expose:
- 8000
networks:
- communication-network
nginx:
restart: always
container_name: communication-microservice-nginx
image: communication-microservice-nginx:latest
build:
context: ./nginx
dockerfile: ./Dockerfile
ports:
- 80:80
depends_on:
- server
networks:
- communication-network
volumes:
rabbit_data:
networks:
communication-network:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.5.0.0/16