-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
49 lines (45 loc) · 1.01 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
version: "3.8"
services:
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: krk_meetings_rabbitmq
ports:
- 5672:5672
- 15672:15672
volumes:
- ./.docker/rabbitmq/etc/:/etc/rabbitmq/
- ./.docker/rabbitmq/data/:/var/lib/rabbitmq/
- ./.docker/rabbitmq/logs/:/var/log/rabbitmq/
env_file:
- ./.env
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USERNAME}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD}
backend:
container_name: krk_meetings_backend
build:
context: ./backend
dockerfile: Dockerfile
ports:
- 5000:5000
volumes:
- backend_data:/code/krk_meetings/data
env_file:
- ./.env
restart: on-failure
depends_on:
- rabbitmq
links:
- rabbitmq
meetings:
container_name: krk_meetings_meetings
build:
context: ./meetings
dockerfile: Dockerfile
ports:
- 8000:8000
volumes:
- meetings_db:/code/db
volumes:
meetings_db:
backend_data: