30 lines
657 B
YAML
30 lines
657 B
YAML
version: '3'
|
|
services:
|
|
cdb:
|
|
build: .
|
|
ports:
|
|
- "8080:8080"
|
|
depends_on:
|
|
- postgres
|
|
volumes:
|
|
- ./itemdb/items:/itemdb
|
|
- ./locations:/locations
|
|
- ./flows:/flows
|
|
- ./config.toml:/config.toml
|
|
environment:
|
|
- "DATABASE_URL=postgres://user:pass@postgres/cdb"
|
|
- "RUST_LOG=debug"
|
|
- "ROCKET_ADDRESS=0.0.0.0"
|
|
- "ROCKET_PORT=8080"
|
|
|
|
postgres:
|
|
image: timescale/timescaledb:latest-pg16
|
|
restart: always
|
|
ports:
|
|
- 5432:5432
|
|
volumes:
|
|
- ./db:/var/lib/postgresql/data/
|
|
environment:
|
|
- POSTGRES_USER=user
|
|
- POSTGRES_PASSWORD=pass
|
|
- POSTGRES_DB=cdb
|