postgres
This commit is contained in:
parent
584ffb6b11
commit
1faa3b9668
19 changed files with 1058 additions and 1244 deletions
|
@ -5,25 +5,26 @@ services:
|
|||
ports:
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
- mongodb
|
||||
- postgres
|
||||
volumes:
|
||||
- ./itemdb/items:/itemdb
|
||||
- ./locations:/locations
|
||||
- ./flows:/flows
|
||||
- ./config.toml:/config.toml
|
||||
environment:
|
||||
- "DB_URI=mongodb://user:pass@mongodb:27017"
|
||||
- "DB=cdb"
|
||||
- "DATABASE_URL=postgres://user:pass@postgres/cdb"
|
||||
- "RUST_LOG=debug"
|
||||
- "ROCKET_ADDRESS=0.0.0.0"
|
||||
- "ROCKET_PORT=8080"
|
||||
|
||||
mongodb:
|
||||
image: mongo:latest
|
||||
postgres:
|
||||
image: timescale/timescaledb:latest-pg16
|
||||
restart: always
|
||||
ports:
|
||||
- "27017:27017"
|
||||
environment:
|
||||
MONGO_INITDB_ROOT_USERNAME: user
|
||||
MONGO_INITDB_ROOT_PASSWORD: pass
|
||||
- 5432:5432
|
||||
volumes:
|
||||
- ./db:/data/db
|
||||
- ./db:/var/lib/postgresql/data/
|
||||
environment:
|
||||
- POSTGRES_USER=user
|
||||
- POSTGRES_PASSWORD=pass
|
||||
- POSTGRES_DB=cdb
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue