-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (46 loc) · 1.11 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.8"
services:
database:
image: mysql:8.0.34
container_name: database
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_PASSWORD: root
MYSQL_DATABASE: myDB
ports:
- "3307:3306"
backend:
container_name: backend
env_file:
../Backend/.env
build:
context: ../Backend
ports:
- "8080:8080"
- "5005:5005"
environment:
S3_ACCESS_KEY: ${S3_ACCESS_KEY}
S3_SECRET_KEY: ${S3_SECRET_KEY}
RABBIT_HOST: rabbitmq
depends_on:
- database
restart: on-failure
rabbitmq:
hostname: rabbitmq
image: rabbitmq:3.12.11-management
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
- "61613:61613"
environment:
RABBITMQ_DEFAULT_USER: "guest"
RABBITMQ_DEFAULT_PASS: "guest"
#RABBITMQ_DEFAULT_VHOST: "/"
command:
- bash
- -c
- |
rabbitmq-plugins enable rabbitmq_web_stomp && rabbitmq-plugins enable rabbitmq_web_stomp_examples && rabbitmq-server
volumes:
- ./rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf