2024-12-26 01:07:43 +01:00
|
|
|
services:
|
|
|
|
pacco:
|
|
|
|
build: .
|
|
|
|
ports:
|
|
|
|
- "8080:8000"
|
|
|
|
volumes:
|
|
|
|
- ./data:/data
|
|
|
|
environment:
|
|
|
|
- "RUST_LOG=info"
|
|
|
|
- "ROCKET_ADDRESS=0.0.0.0"
|
2024-12-27 04:56:15 +01:00
|
|
|
- "DATABASE_URL=postgres://user:pass@postgres/pacco"
|
2024-12-27 04:28:05 +01:00
|
|
|
|
|
|
|
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=pacco
|