Created
September 30, 2019 20:41
-
-
Save brantburnett/2330ebfb3b75a0ceb86be456e0a50f39 to your computer and use it in GitHub Desktop.
Docker Compose Couchbase Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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