-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (63 loc) · 1.79 KB
/
Copy pathdocker-compose.yml
File metadata and controls
68 lines (63 loc) · 1.79 KB
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
version: '3'
services:
cqrs.elasticsearch:
image: elasticsearch:6.5.0
ports:
- ${ELASTIC_PORT}:${ELASTIC_PORT}
networks:
- cqrs
cqrs.mysql:
image: mysql:5.7.22
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
volumes:
- ./cqrs-write/src/main/resources/sql:/docker-entrypoint-initdb.d/
ports:
- 3306:3306
networks:
- cqrs
cqrs.write:
image: com.example/cqrs-write:${VERSION}
depends_on:
- cqrs.mysql
ports:
- ${APP_WRITE_PORT}:${APP_WRITE_PORT}
- ${CLUSTER_WRITE_PORT}:${CLUSTER_WRITE_PORT}
environment:
APP_WRITE_HOST: ${APP_WRITE_HOST}
APP_WRITE_PORT: ${APP_WRITE_PORT}
CLUSTER_WRITE_HOST: ${CLUSTER_WRITE_HOST}
CLUSTER_WRITE_PORT: ${CLUSTER_WRITE_PORT}
CLUSTER_SEED_READ_ADDRESS: ${CLUSTER_SEED_READ_ADDRESS}
CLUSTER_SEED_WRITE_ADDRESS: ${CLUSTER_SEED_WRITE_ADDRESS}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_NAME: ${DB_NAME}
DB_URL: ${DB_URL}
networks:
- cqrs
cqrs.read:
image: com.example/cqrs-read:${VERSION}
depends_on:
- cqrs.elasticsearch
ports:
- ${APP_READ_PORT}:${APP_READ_PORT}
- ${CLUSTER_READ_PORT}:${CLUSTER_READ_PORT}
environment:
APP_READ_HOST: ${APP_READ_HOST}
APP_READ_PORT: ${APP_READ_PORT}
CLUSTER_READ_HOST: ${CLUSTER_READ_HOST}
CLUSTER_READ_PORT: ${CLUSTER_READ_PORT}
CLUSTER_SEED_READ_ADDRESS: ${CLUSTER_SEED_READ_ADDRESS}
CLUSTER_SEED_WRITE_ADDRESS: ${CLUSTER_SEED_WRITE_ADDRESS}
ELASTIC_PROTOCOL: ${ELASTIC_PROTOCOL}
ELASTIC_HOST: ${ELASTIC_HOST}
ELASTIC_PORT: ${ELASTIC_PORT}
networks:
- cqrs
networks:
cqrs:
driver: bridge