Introduction
Install Axon server with docker on local machine for development environment
- 8024(local machine port):8024(the server in a docker container)
- To make our docker container use an external volume for storage and the external storage volume will be direct on our computer.
- To link the folder in the docker container with a folder on our computer.
username=anote
echo=${username}
docker run -d --name axonserver -p 8024:8024 -p 8124:8124 -v "/Users/${username}/Desktop/docker-data/date":/data -v "/Users/${username}/Desktop/docker-data/eventdata":/eventdata -v "/Users/${username}/Desktop/docker-data/config":/config axoniq/axonserver
- username: mac pc user name | location on desktop
Development setting for axon server
vim /Users/jayjo/Desktop/docker-data/config/axonserver.properties
axoniq.axonserver.name=My Axon sever
axoniq.axonserver.hostname=localhost
axoniq.axonserver.devmode.enabled=true