Skip to content

Instantly share code, notes, and snippets.

@sairamkrish
Last active May 23, 2018 20:03
Show Gist options
  • Save sairamkrish/3e79783be3e32faa5cd48b801c1296b2 to your computer and use it in GitHub Desktop.
Save sairamkrish/3e79783be3e32faa5cd48b801c1296b2 to your computer and use it in GitHub Desktop.
version: '3.3'
services:
mongo:
image: mongo:3.6
restart: always
hostname: mongo
ports:
- '27017:27017'
volumes:
- mongodata:/data/db
redis:
container_name: some-redis
image: redis:4-alpine
ports:
- '6379:6379'
volumes:
- redisdata:/data
data-service:
image: sairamkrish/temp1
links:
- mongo
environment:
- SPRING_DATA_MONGODB_HOST=mongo
depends_on:
- mongo
- redis
ports:
- "8080:8080"
volumes:
mongodata:
redisdata:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment