Skip to content

Instantly share code, notes, and snippets.

@tastywheat
Created April 22, 2019 00:20
Show Gist options
  • Save tastywheat/83e6428b9d159a8ee66c94ac4a1b411e to your computer and use it in GitHub Desktop.
Save tastywheat/83e6428b9d159a8ee66c94ac4a1b411e to your computer and use it in GitHub Desktop.
docker-compose
version: '2'
services:
api:
image: node:10
working_dir: /opt
stdin_open: true
tty: true
volumes:
- ./api:/opt
ports:
- 3333:3333
web:
image: node:10
working_dir: /opt
stdin_open: true
tty: true
volumes:
- ./web:/opt
ports:
- 3000:3000
mongo:
image: mongo
restart: on-failure
ports:
- 27017:27017
volumes:
- ./db/mongo:/data/db
redis:
image: redis
restart: on-failure
volumes:
- ./db/redis:/data
ports:
- 6379:6379
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.3
restart: on-failure
environment:
- discovery.type=single-node
volumes:
- ./db/elasticsearch:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment