27 lines
639 B
YAML
27 lines
639 B
YAML
services:
|
|
webarc:
|
|
build: .
|
|
ports:
|
|
- "8080:8000"
|
|
volumes:
|
|
- ./websites:/websites
|
|
- ./favicon:/favicon
|
|
- ./config.toml:/config.toml
|
|
environment:
|
|
- "RUST_LOG=info"
|
|
- "ROCKET_ADDRESS=0.0.0.0"
|
|
- "DATABASE_URL=postgres://user:pass@postgres/webarc"
|
|
command: "/webarc serve"
|
|
|
|
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
|