Skip to content

Commit

Permalink
#39 add consul config to docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
kasramp committed Feb 12, 2024
1 parent f594d7d commit 340fa57
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ local.properties
.settings/
.loadpath

# Consul data
consul-data/
13 changes: 13 additions & 0 deletions consul-server-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"node_name": "Cassini",
"server": true,
"data_dir": "consul-data",
"log_level": "INFO",
"client_addr": "0.0.0.0",
"bind_addr": "0.0.0.0",
"advertise_addr": "127.0.0.1",
"bootstrap_expect": 1,
"ui_config": {
"enabled": true
}
}
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ services:
ports:
- "8500:8500"
- "8600:8600/udp"
command: "agent -dev -client 0.0.0.0"
volumes:
- ./consul-server-config.json:/consul/config/consul-config.json
- ./consul-data:/consul/config
#command: "agent -dev -client 0.0.0.0"

0 comments on commit 340fa57

Please sign in to comment.