init
This commit is contained in:
commit
e8e8d9d960
7 changed files with 3217 additions and 0 deletions
21
docker-compose.yml
Normal file
21
docker-compose.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
version: '3'
|
||||
services:
|
||||
cdb:
|
||||
build: .
|
||||
ports:
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
- mongodb
|
||||
volumes:
|
||||
- ./itemdb:/itemdb
|
||||
|
||||
mongodb:
|
||||
image: mongo:latest
|
||||
ports:
|
||||
- "27017:27017"
|
||||
environment:
|
||||
MONGO_INITDB_ROOT_USERNAME: user
|
||||
MONGO_INITDB_ROOT_PASSWORD: pass
|
||||
volumes:
|
||||
- ./db:/data/db
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue