-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (82 loc) · 2.57 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: '3.5'
networks:
backend:
driver: ${NETWORKS_DRIVER}
volumes:
mysql:
driver: ${VOLUMES_DRIVER}
services:
### MySQL ################################################
mysql:
build:
context: ./dockers/mysql
args:
- MYSQL_VERSION=${MYSQL_VERSION}
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- TZ=${WORKSPACE_TIMEZONE}
volumes:
- ${DATA_PATH_HOST}/mysql:/var/lib/mysql
- ${MYSQL_ENTRYPOINT_INITDB}:/docker-entrypoint-initdb.d
ports:
- "${MYSQL_PORT}:3306"
networks:
- backend
### Grafana ################################################
grafana:
build:
context: ./dockers/grafana
volumes:
- ${DATA_PATH_HOST}/grafana:/var/lib/grafana
ports:
- "${GRAFANA_PORT}:3000"
networks:
- backend
### Prometheus ################################################
prometheus:
# https://hub.docker.com/r/prom/prometheus/tags
image: prom/prometheus:v2.28.1
networks:
- "backend"
ports:
- "9090:9090"
volumes:
- ${DATA_PATH_HOST}/prometheus:/prometheus
- ./dockers/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
### RabbitMQ #############################################
rabbitmq:
build: ./dockers/rabbitmq
ports:
- "${RABBITMQ_NODE_HOST_PORT}:5672"
- "${RABBITMQ_MANAGEMENT_HTTP_HOST_PORT}:15672"
- "${RABBITMQ_MANAGEMENT_HTTPS_HOST_PORT}:15671"
- "${RABBITMQ_WEB_STOMP_HOST_PORT}:15674"
privileged: true
hostname: laradock-rabbitmq
volumes:
- ${DATA_PATH_HOST}/rabbitmq:/var/lib/rabbitmq
- ./dockers/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf
- ./dockers/rabbitmq/management_agent.disable_metrics_collector.conf:/etc/rabbitmq/conf.d/management_agent.disable_metrics_collector.conf
networks:
- backend
### Product Catalog service #############################################
product-service:
build: ./product-catalog
volumes:
- ./product-catalog:/app
ports:
- "${PRODUCT_SERVICE_PORT}:8080"
networks:
- backend
### Order Catalog service #############################################
order-service:
build: ./order-manager
volumes:
- ./order-manager:/app
ports:
- "${ORDER_SERVICE_PORT}:8081"
networks:
- backend