-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
43 lines (43 loc) · 1.05 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
version: '3'
services:
cache:
image: hazelcast/hazelcast:5.0-BETA-2-slim
environment:
JAVA_OPTS: -Dhazelcast.config=/etc/hazelcast/hazelcast.yaml
volumes:
- ./compose/cache:/etc/hazelcast
ports:
- "5701:5701"
app:
build:
context: app
environment:
DATABASE_URI: mysql+mysqlconnector://root:root@database:3306/store
CLUSTER_HOST: cache
ports:
- "5000:5000"
depends_on:
- cache
pipeline:
build:
context: cache-ahead
environment:
MYSQL_HOST: database
MYSQL_USER: root
MYSQL_PASSWORD: root
DATABASE_SCHEMA: store
CACHE_HOST: cache
WAIT_TIME: 12000
depends_on:
- database
- cache
database:
container_name: cache-patterns-datastore
image: mysql:8.0
command: mysqld --log-bin=ON --binlog_format=ROW --server-id=1 --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: root
ports:
- "3306:3306"
volumes:
- ./compose/database:/docker-entrypoint-initdb.d