Skip to content

Commit

Permalink
Add basic dockerfile to setup basic dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
AO-StreetArt committed Sep 26, 2018
1 parent ac69ee2 commit ab2b3b0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions compose/min/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: '2.1'

services:
registry:
image: consul
container_name: registry
ports:
- "8500:8500"
command: agent --dev -ui -client=0.0.0.0
healthcheck:
test: ["CMD", "curl", "http://localhost:8500/v1/status/leader"]
interval: 30s
timeout: 10s
retries: 3
mongo:
image: mongo
container_name: document-db
restart: always
ports:
- "27017:27017"
kelona:
image: aostreetart/kelona:latest
container_name: kelona
ports:
- "5635:5635"
depends_on:
registry:
condition: service_healthy
environment:
- SERVER_MONGO_HOST=document-db
- SPRING_CLOUD_CONSUL_HOST=registry
- SPRING_CLOUD_CONSUL_DISCOVERY_PREFERIPADDRESS=true

0 comments on commit ab2b3b0

Please sign in to comment.