mirror of
https://github.com/Ravinou/borgwarehouse
synced 2024-06-16 12:45:19 +02:00
feat: add docker-compose.yml file
This commit is contained in:
parent
f217d922a1
commit
608a3b6bf5
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -109,3 +109,6 @@ dist
|
|||
# config file for BorgWarehouse
|
||||
config/repo.json
|
||||
config/users.json
|
||||
|
||||
# docker files
|
||||
docker-compose.yml
|
27
docker-compose.yml
Normal file
27
docker-compose.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
version: '3'
|
||||
services:
|
||||
borgwarehouse:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: borgwarehouse
|
||||
ports:
|
||||
- '3000:3000'
|
||||
- '2222:22'
|
||||
environment:
|
||||
# UID and GID are the user and group id of the user running the container
|
||||
- UID=1001
|
||||
- GID=1001
|
||||
- NEXTAUTH_URL=https://your.domain.com
|
||||
- NEXTAUTH_SECRET=your-secret
|
||||
- CRONJOB_KEY=your-other-secret
|
||||
# The SSH_SERVER_PORT must match the port exposed above
|
||||
- SSH_SERVER_PORT=2222
|
||||
- FQDN=your.domain.com
|
||||
volumes:
|
||||
# The host folders must be owned by the user with UID and GID specified above
|
||||
- <host-folder>/config:/home/borgwarehouse/app/config
|
||||
- <host-folder>/ssh:/home/borgwarehouse/.ssh
|
||||
- <host-folder>/ssh_host:/etc/ssh
|
||||
- <host-folder>/repos:/home/borgwarehouse/repos
|
||||
container_name: borgwarehouse
|
Loading…
Reference in a new issue