25 lines
578 B
YAML
25 lines
578 B
YAML
# MongoDB database and Redis server for development
|
|
# Run `scripts/dev_db.sh` to get this up
|
|
|
|
version: "3.1"
|
|
services:
|
|
db:
|
|
image: mongo
|
|
restart: "no"
|
|
environment:
|
|
MONGO_INITDB_ROOT_USERNAME: root
|
|
MONGO_INITDB_ROOT_PASSWORD: do_not_use_in_prod
|
|
ports:
|
|
- 127.0.0.1:27017:27017
|
|
volumes:
|
|
- ./.private/db:/data/db:rw
|
|
|
|
redis:
|
|
image: eqalpha/keydb
|
|
restart: "no"
|
|
volumes:
|
|
- ./.private/redis:/data:rw
|
|
ports:
|
|
# Don't do this in production; We didn't set any authentication credentials
|
|
- 127.0.0.1:6379:6379
|