2024-12-29 16:51:34 +01:00
|
|
|
services:
|
|
|
|
webarc:
|
|
|
|
build: .
|
|
|
|
ports:
|
|
|
|
- "8080:8000"
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
volumes:
|
|
|
|
- ./websites:/websites
|
|
|
|
environment:
|
|
|
|
- "DATABASE_URL=postgres://user:pass@postgres/webarc"
|
|
|
|
- "RUST_LOG=info"
|
|
|
|
- "ROCKET_ADDRESS=0.0.0.0"
|
2024-12-29 16:58:58 +01:00
|
|
|
# Rewrite links to point back to the archive itself
|
|
|
|
- "ROUTE_INTERNAL=true"
|
|
|
|
# Download missing routes on demand
|
|
|
|
- "DOWNLOAD_ON_DEMAND=true"
|
2024-12-29 16:51:34 +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=webarc
|