cdb/docker-compose.yml
2024-09-12 10:34:14 +02:00

29 lines
608 B
YAML

version: '3'
services:
cdb:
build: .
ports:
- "8080:8080"
depends_on:
- mongodb
volumes:
- ./itemdb/items:/itemdb
- ./locations:/locations
- ./flows:/flows
- ./config.toml:/config.toml
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
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: user
MONGO_INITDB_ROOT_PASSWORD: pass
volumes:
- ./db:/data/db