Better dev experience, better front page
All checks were successful
pipeline / build-and-push-images (push) Successful in 5m30s
All checks were successful
pipeline / build-and-push-images (push) Successful in 5m30s
This commit is contained in:
32
dev/docker-compose.yml
Normal file
32
dev/docker-compose.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
services:
|
||||
# Development MongoDB with performance optimizations
|
||||
mongodb:
|
||||
image: mongo:latest
|
||||
container_name: buildpath-mongodb
|
||||
ports:
|
||||
- "27017:27017"
|
||||
environment:
|
||||
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER:-root}
|
||||
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASS:-password}
|
||||
volumes:
|
||||
- ./data/db:/data/db
|
||||
command: mongod --wiredTigerCacheSizeGB 4 --quiet
|
||||
healthcheck:
|
||||
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
|
||||
interval: 5s
|
||||
timeout: 2s
|
||||
retries: 30
|
||||
|
||||
mongo-express:
|
||||
image: mongo-express
|
||||
ports:
|
||||
- "8081:8081"
|
||||
environment:
|
||||
ME_CONFIG_MONGODB_SERVER: mongodb
|
||||
ME_CONFIG_MONGODB_ADMINUSERNAME: ${MONGO_USER:-root}
|
||||
ME_CONFIG_MONGODB_ADMINPASSWORD: ${MONGO_PASS:-password}
|
||||
ME_CONFIG_BASICAUTH_USERNAME: admin
|
||||
ME_CONFIG_BASICAUTH_PASSWORD: admin123
|
||||
depends_on:
|
||||
mongodb:
|
||||
condition: service_healthy
|
||||
Reference in New Issue
Block a user