1
0
Fork 0
mirror of https://github.com/zhaofengli/attic.git synced 2024-12-14 11:57:30 +00:00

doc: add docker compose example

This commit is contained in:
Patrizio Bekerle 2023-05-07 15:28:15 +02:00 committed by GitHub
parent 5f85e35a25
commit 5e0ad99930
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,28 @@ And yes, it works on macOS too!
- **Scalabilty**: Attic can be easily replicated. It's designed to be deployed to serverless platforms like fly.io but also works nicely in a single-machine setup.
- **Garbage Collection**: Unused store paths can be garbage-collected in an LRU manner.
## Docker compose example
To use this you need to create a `./attic/server.toml` with your config pointing to the other directories.
You also need to create an empty `./attic/server.db` that atticd can take over.
```yaml
version: '3.7'
services:
attic:
image: ghcr.io/zhaofengli/attic:latest
volumes:
- ./attic/server.toml:/attic/server.toml
- ./attic/server.db:/attic/server.db
- attic-storage:/attic/storage
command: [ "-f", "/attic/server.toml" ]
ports:
- 8080:8080
volumes:
attic-storage:
```
## Licensing
Attic is available under the **Apache License, Version 2.0**.