Compare commits
2 Commits
e63b4973fd
...
240e9885d2
Author | SHA1 | Date |
---|---|---|
|
240e9885d2 | |
|
0b97244e25 |
33
README.md
33
README.md
|
@ -89,8 +89,6 @@ sudo apt remove docker docker-engine docker.io containerd runc
|
||||||
sudo rm /etc/apt/sources.list.d/docker.list
|
sudo rm /etc/apt/sources.list.d/docker.list
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## 📦 Adding a new service
|
## 📦 Adding a new service
|
||||||
1. **Create Service Directory:** Inside your repository, create a new directory under `/service` for your new self-hosted service.
|
1. **Create Service Directory:** Inside your repository, create a new directory under `/service` for your new self-hosted service.
|
||||||
|
|
||||||
|
@ -105,6 +103,37 @@ make upload-{service_name}
|
||||||
```
|
```
|
||||||
Replace `{service_name}` with the name of your service directory. This command will sync the configurations to the specified server path using the variables defined in your `.env` file.
|
Replace `{service_name}` with the name of your service directory. This command will sync the configurations to the specified server path using the variables defined in your `.env` file.
|
||||||
|
|
||||||
|
## 📦 Make service publicly available
|
||||||
|
|
||||||
|
Add the following labels:
|
||||||
|
|
||||||
|
```
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.gitea.rule=Host(${HOST})"
|
||||||
|
- "traefik.http.routers.gitea.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.gitea.tls.certresolver=myresolver"
|
||||||
|
- "traefik.http.services.gitea.loadbalancer.server.port=3000"
|
||||||
|
- "traefik.docker.network=traefik_network"
|
||||||
|
```
|
||||||
|
|
||||||
|
Set `HOST` in your `.env` file.
|
||||||
|
|
||||||
|
Add your service to the `traefik_network` network:
|
||||||
|
|
||||||
|
```
|
||||||
|
networks:
|
||||||
|
- traefik_network
|
||||||
|
```
|
||||||
|
|
||||||
|
Add:
|
||||||
|
|
||||||
|
```
|
||||||
|
networks:
|
||||||
|
traefik_network:
|
||||||
|
external: true
|
||||||
|
```
|
||||||
|
|
||||||
## 🛠️ Storage
|
## 🛠️ Storage
|
||||||
|
|
||||||
### 📦 Mounting a New Volume Using Hetzner's Storage Box
|
### 📦 Mounting a New Volume Using Hetzner's Storage Box
|
||||||
|
|
|
@ -9,7 +9,7 @@ services:
|
||||||
container_name: "${LD_CONTAINER_NAME:-linkding}"
|
container_name: "${LD_CONTAINER_NAME:-linkding}"
|
||||||
image: sissbruecker/linkding:latest
|
image: sissbruecker/linkding:latest
|
||||||
ports:
|
ports:
|
||||||
- "${LD_HOST}:${LD_HOST_PORT:-9090}:3000"
|
- "9090:3000"
|
||||||
volumes:
|
volumes:
|
||||||
- "${LD_HOST_DATA_DIR:-./data}:/etc/linkding/data"
|
- "${LD_HOST_DATA_DIR:-./data}:/etc/linkding/data"
|
||||||
env_file:
|
env_file:
|
||||||
|
|
Loading…
Reference in New Issue