-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (77 loc) · 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
version: '3.8'
services:
giftcard:
hostname: giftcard
build:
context: .
dockerfile: Dockerfile
environment:
- AXON_API_URL=http://axoniq-synapse:8080/v1
- AXON_COMMAND_CALLBACK_ENDPOINT=http://giftcard:3000
- AXON_EVENT_CALLBACK_ENDPOINT=http://giftcard:3000
- AXON_QUERY_CALLBACK_ENDPOINT=http://giftcard:3000
- DATABASE_HOST=postgres
ports:
- '3000:3000'
depends_on:
- postgres
- axoniq-synapse
- axonserver-enterprise-1
volumes:
- ./src:/app/src
networks:
- axon-net
axoniq-synapse:
platform: linux/arm64
hostname: axoniq-synapse
build:
context: ./synapse
dockerfile: Dockerfile
environment:
- synapse.serverList=axonserver-enterprise-1:8124
ports:
- '8080:8080'
networks:
- axon-net
axonserver-enterprise-1:
platform: linux/arm64
image: axoniq/axonserver:latest-jdk-17-dev
hostname: axonserver-enterprise-1
environment:
- SERVER_PORT=8024
- AXONIQ_AXONSERVER_PORT=8124
- AXONIQ_AXONSERVER_METRICS_GRPC_ENABLED=true
- AXONIQ_AXONSERVER_METRICS_GRPC_PROMETHEUS-ENABLED=true
volumes:
- axonserver-enterprise-1-log:/axonserver/log
- axonserver-enterprise-1-events:/axonserver/events
- axonserver-enterprise-1-data:/axonserver/data
- ./axoniq.license:/axonserver/axoniq.license
- ./cluster-template.yml:/axonserver/cluster-template.yml
ports:
- '8024:8024'
- '8124:8124'
- '8224:8224'
networks:
- axon-net
postgres:
platform: linux/arm64
image: postgres:latest
hostname: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=demo
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- '5432:5432'
networks:
- axon-net
volumes:
axonserver-enterprise-1-log:
axonserver-enterprise-1-events:
axonserver-enterprise-1-data:
postgres-data:
networks:
axon-net: