Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.