Skip to content

Instantly share code, notes, and snippets.

@brantburnett
Created September 30, 2019 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brantburnett/2330ebfb3b75a0ceb86be456e0a50f39 to your computer and use it in GitHub Desktop.
Save brantburnett/2330ebfb3b75a0ceb86be456e0a50f39 to your computer and use it in GitHub Desktop.
Docker Compose Couchbase Example
version: '3.4'
# This file applies override values that are add to the values in the first file when run in Visual Studio
# The idea is that you might use docker-compose up on the command line for the first file for other testing outside VS
services:
your-service:
environment:
- ASPNETCORE_ENVIRONMENT=Development
ports:
- "80"
version: '3.4'
services:
couchbase:
image: btburnett3/couchbasefakeit:enterprise-6.0.1
environment:
CB_INDEXSTORAGE: memory_optimized
volumes:
- "./couchbase:/startup" # local ./couchbase folder where couchbasefakeit configuration files are located
ports:
- "8091:8091" # Allows local access to mgmt UI
your-service:
image: your-service
build:
context: ./Your.Service.Folder
dockerfile: Dockerfile
environment:
Couchbase__Servers__0: http://couchbase:8091/ # Reference to the "couchbase" service name on line 4
depends_on:
- couchbase # Reference to the "couchbase" service name on line 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment