feat(docker): Add Consul to docker-compose and update documentation
- Add Consul service to docker-compose.yml - Running in dev mode on port 8500 - Health checks configured - Persistent volume for data - Web UI available at http://localhost:8500/ui - Update SUMMARY.md - Document Consul setup in docker-compose - Add Consul verification steps - Update prerequisites to include Docker Compose - Add note about Consul Web UI - Remove obsolete version field from docker-compose.yml
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
@@ -20,9 +18,27 @@ services:
|
||||
networks:
|
||||
- goplt-network
|
||||
|
||||
consul:
|
||||
image: consul:latest
|
||||
container_name: goplt-consul
|
||||
command: consul agent -dev -client=0.0.0.0
|
||||
ports:
|
||||
- "8500:8500"
|
||||
volumes:
|
||||
- consul_data:/consul/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "consul members"]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
networks:
|
||||
- goplt-network
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
driver: local
|
||||
consul_data:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
goplt-network:
|
||||
|
||||
Reference in New Issue
Block a user