2024-01-14 02:57:13 +00:00
|
|
|
version: '3'
|
|
|
|
services:
|
2024-08-28 20:03:39 +00:00
|
|
|
cdb:
|
|
|
|
build: .
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
depends_on:
|
|
|
|
- mongodb
|
|
|
|
volumes:
|
|
|
|
- ./itemdb/items:/itemdb
|
2024-09-08 00:37:39 +00:00
|
|
|
- ./locations:/locations
|
2024-09-12 08:34:14 +00:00
|
|
|
- ./flows:/flows
|
2024-09-08 00:37:39 +00:00
|
|
|
- ./config.toml:/config.toml
|
2024-08-28 20:03:39 +00:00
|
|
|
environment:
|
|
|
|
- "DB_URI=mongodb://user:pass@mongodb:27017"
|
|
|
|
- "DB=cdb"
|
|
|
|
- "RUST_LOG=debug"
|
|
|
|
- "ROCKET_ADDRESS=0.0.0.0"
|
|
|
|
- "ROCKET_PORT=8080"
|
2024-01-14 02:57:13 +00:00
|
|
|
|
|
|
|
mongodb:
|
|
|
|
image: mongo:latest
|
|
|
|
ports:
|
|
|
|
- "27017:27017"
|
|
|
|
environment:
|
|
|
|
MONGO_INITDB_ROOT_USERNAME: user
|
|
|
|
MONGO_INITDB_ROOT_PASSWORD: pass
|
|
|
|
volumes:
|
|
|
|
- ./db:/data/db
|