Skip to content

Commit

Permalink
Merge pull request #5 from ValMati/AddPackageTzdata
Browse files Browse the repository at this point in the history
Add package tzdata to Dockerfile
  • Loading branch information
ValMati authored Aug 22, 2021
2 parents a4102ba + e44e01c commit 833d9f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:3.14.1

RUN apk add --update openssh borgbackup && \
RUN apk add --update openssh borgbackup tzdata && \
rm -rf /tmp/* /var/cache/apk/*

EXPOSE 22
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

Docker image with openSSH and BorgBackup installed and ready to use as a backup server over SSH.

## Image
## Source Code & Image

The code is available on [GitHub](https://github.com/ValMati/borgserver-docker)

With each release a new version of the image is published on [DockerHub](https://hub.docker.com/r/valmati/borgserver)

Expand Down Expand Up @@ -40,7 +42,7 @@ When the image is executed, it is checked if these keys already exist and if don

In this volumen the public keys of the clients must be accessible. In case you want to add or remove a cliente it is not necessary to stop and relaunch the container, just remove or add the publich keys and execute the following command:

```
```bash
docker exec [ContainerName] /bin/genauthkeys.sh
```

Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ services:
environment:
- UID=1000
- GID=1000
- TZ=Europe/Madrid
ports:
- "2222:22"
volumes:
- ./host_keys:/etc/ssh/host_keys/
- ./authorized_keys:/etc/authorized_keys/:ro
- ./backups:/backups
restart: unless-stopped

0 comments on commit 833d9f5

Please sign in to comment.