This commit is contained in:
JMARyA 2024-08-28 22:03:39 +02:00
parent acf5ebae78
commit 0e174dc06e
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
6 changed files with 53 additions and 16 deletions

View file

@ -1,15 +1,19 @@
version: '3'
services:
# cdb:
# build: .
# ports:
# - "8080:8080"
# depends_on:
# - mongodb
# volumes:
# - ./itemdb:/itemdb
# environment:
# - "DB_URI=mongodb://user:pass@mongodb:27017"
cdb:
build: .
ports:
- "8080:8080"
depends_on:
- mongodb
volumes:
- ./itemdb/items:/itemdb
environment:
- "DB_URI=mongodb://user:pass@mongodb:27017"
- "DB=cdb"
- "RUST_LOG=debug"
- "ROCKET_ADDRESS=0.0.0.0"
- "ROCKET_PORT=8080"
mongodb:
image: mongo:latest
@ -20,4 +24,3 @@ services:
MONGO_INITDB_ROOT_PASSWORD: pass
volumes:
- ./db:/data/db