-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
109 lines (100 loc) · 2.2 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
services:
php1:
build:
context: .docker/php
networks:
- backend
volumes:
- ./backend/:/var/www/html/
environment:
NETTE_ENV: dev
NETTE_DEBUG: 0
php2:
build:
context: .docker/php
networks:
- backend
volumes:
- ./backend/:/var/www/html/
environment:
NETTE_ENV: dev
NETTE_DEBUG: 0
product-changes-index-consumer:
build:
context: .docker/php
networks:
- backend
volumes:
- ./backend/:/var/www/html/
environment:
NETTE_ENV: dev
NETTE_DEBUG: 0
command: 'bin/console rabbitmq:consumer:product-changes-index'
nginx:
build:
context: .docker/nginx
ports:
- "8080:80"
networks:
- backend
- frontend
volumes:
- ./backend/:/var/www/html/
db:
image: mysql:latest
ports:
- "3306:3306"
networks:
- backend
volumes:
- ./.docker/temp/db:/var/lib/mysql
- ./.docker/mysql/conf.d:/etc/mysql/conf.d
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: georgina
node:
image: node:16.19.0
ports:
- "80:3000"
- "24678:24678" # HMR
volumes:
- ./frontend:/app
working_dir: /app
user: node
command: bash -c "npm install && npm run dev"
networks:
- frontend
elastic:
image: elasticsearch:8.5.3
ports:
- "9200:9200"
networks:
- backend
volumes:
- ./.docker/temp/elastic:/usr/share/elasticsearch/data
environment:
- xpack.security.enabled=false
- discovery.type=single-node
maxwell:
image: zendesk/maxwell:v1.39.4
networks:
- backend
environment:
MYSQL_USERNAME: maxwell
MYSQL_PASSWORD: maxwell1234
MYSQL_HOST: db
PRODUCER: rabbitmq
command: bash -c 'bin/maxwell --user=$${MYSQL_USERNAME} --password=$${MYSQL_PASSWORD} --host=$${MYSQL_HOST} --producer=$${PRODUCER} --rabbitmq_host='rabbitmq' --rabbitmq_exchange_type='direct''
rabbitmq:
image: rabbitmq:management
ports:
- "15672:15672"
networks:
- backend
volumes:
- ./.docker/temp/rabbitmq:/var/lib/rabbitmq
networks:
backend:
driver: bridge
frontend:
driver: bridge