2024-12-29 16:51:34 +01:00
|
|
|
services:
|
|
|
|
webarc:
|
|
|
|
build: .
|
|
|
|
ports:
|
|
|
|
- "8080:8000"
|
|
|
|
volumes:
|
|
|
|
- ./websites:/websites
|
2024-12-29 19:35:56 +01:00
|
|
|
- ./favicon:/favicon
|
2025-01-02 19:00:47 +01:00
|
|
|
- ./config.toml:/config.toml
|
|
|
|
environment:
|
|
|
|
- "RUST_LOG=info"
|
|
|
|
- "ROCKET_ADDRESS=0.0.0.0"
|
|
|
|
- "DATABASE_URL=postgres://user:pass@postgres/webarc"
|
2025-01-02 22:56:51 +01:00
|
|
|
command: "/webarc serve"
|
2024-12-30 14:06:32 +01:00
|
|
|
|
|
|
|
postgres:
|
|
|
|
# Any Postgres with support for pgvector
|
|
|
|
image: git.hydrar.de/hydra/postgres:latest
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 5432:5432
|
|
|
|
volumes:
|
|
|
|
- ./db:/var/lib/postgresql/data/
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=user
|
|
|
|
- POSTGRES_PASSWORD=pass
|
|
|
|
- POSTGRES_DB=webarc
|