Skip to content

Instantly share code, notes, and snippets.

@haroonKhan-10p
Created May 21, 2018 11:58
Show Gist options
  • Save haroonKhan-10p/e2575c2e5383d2fd93c47e27f89c200f to your computer and use it in GitHub Desktop.
Save haroonKhan-10p/e2575c2e5383d2fd93c47e27f89c200f to your computer and use it in GitHub Desktop.
setting up lifext with docker-compose
version: '3.4'
services:
lifext_api:
container_name: lifext-api
build:
context: .
dockerfile: Dockerfile
entrypoint:
- "npm"
command:
- "run"
- "dev"
env_file:
- .env
volumes:
- "./src:/lifext-api/src"
- "./public:/lifext-api/public"
ports:
- 3000:3000
- 9229:9229
depends_on:
- couchdb
couchdb:
image: couchbase:4.6.4
container_name: lifext-datastore
ports:
- 8091-8094:8091-8094
- 11210:11210
volumes:
- "lifext_datastore:/opt/couchbase/var"
volumes:
lifext_datastore:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment