Docker setup for restic-rest-server
·
Report Bug
·
Request Feature
Small docker setup for restic-rest-server. The production environment also uses jwilder/nginx-proxy and nginx-proxy/docker-letsencrypt-nginx-proxy-companion.
To get a local copy up and running follow these simple steps.
- Clone the repo
git clone https://github.com/beuluis/restic-rest-server.git- Start docker-compose
docker-compose up --build- Create a
.envfile
touch .env- Overwrite variables as you like (format:
{variable name}={variable value})
| Variable | Description | Default value | Required |
|---|---|---|---|
RESTIC_REST_SERVER_FLAGS |
Flags see Restic Rest Server Docs | --private-repos |
false |
PORT |
Which port is mapped to your host machine | 8001 |
false |
To get a copy up and running follow these simple steps.
- Clone the repo
git clone https://github.com/beuluis/restic-rest-server.git --branch master- Generate a htpasswd string e.g. on htpasswd generator. Use SHA-1 as algorithm
- Create a
.htpasswdfile and fill it with your string
echo "<your string>" > .htpasswd- Create a
.env.prodfile
touch .env.prod- Overwrite all variables marked under Customization as required
- Start docker-compose
docker-compose --env-file ./.env.prod -f docker-compose.yml -f docker-compose.production.yml up -d- Create a
.env.prodfile
touch .env.prod- Overwrite variables as you like (format:
{variable name}={variable value})
| Variable | Description | Default value | Required |
|---|---|---|---|
PROXY_NETWORK_NAME |
Proxy network name | nginxproxynet |
false |
RESTIC_REST_SERVER_FLAGS |
Flags see Restic Rest Server Docs | --private-repos |
false |
HOST |
Host which your container should be accessible. E.g. test.com |
none | true |
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Luis Beu - me@luisbeu.de
