2022-02-08 16:59:41 -08:00
|
|
|
# Server
|
|
|
|
General-purpose server hosting a variety of Docker-based application stacks.
|
|
|
|
|
2022-02-09 07:53:55 -08:00
|
|
|
This server exists behind the jafner.net DDNS record.
|
|
|
|
|
|
|
|
## Services
|
|
|
|
|
|
|
|
This server runs a bunch of stuff behind the `jafner.net` domain.
|
|
|
|
|
|
|
|
For a living portal listing all user-facing services, go to https://home.jafner.net
|
2022-02-10 10:57:08 -08:00
|
|
|
|
|
|
|
This repository is automatically pushed to the host when a change is made to a file in this subdirectory.
|
2022-04-08 01:31:57 -07:00
|
|
|
|
|
|
|
## Sharing Files
|
2022-05-10 12:02:26 -07:00
|
|
|
For files smaller than 2 GB, use [XBackBone](https://xbackbone.jafner.net).
|
|
|
|
For files greater than 2 GB, use one of the following:
|
|
|
|
|
|
|
|
* [Mega](https://mega.io/) - For transfers up to 400 GB
|
|
|
|
* [SFTP](./config/sftp/README.md) - For transfers up to the free space of `/mnt/md0/sftp`
|
|
|
|
* [BitTorrent](/seedbox/config/deluge/README.md)
|
2022-04-08 10:31:37 -07:00
|
|
|
|
|
|
|
## System `/etc/fstab`
|
2022-05-10 10:08:24 -07:00
|
|
|
```
|
2022-04-08 10:31:37 -07:00
|
|
|
//joey-nas/media /mnt/nas/media cifs user=user,pass=resu,uid=1000,gid=1000,_netdev,vers=3.0 0 0
|
|
|
|
//joey-nas/Text/Calibre /mnt/nas/calibre cifs user=user,pass=resu,uid=1000,gid=1000,_netdev,vers=3.0 0 0
|
|
|
|
//joey-nas/torrenting /mnt/nas/torrenting cifs user=user,pass=resu,uid=1000,gid=1000,_netdev,vers=3.0 0 0
|
|
|
|
//joey-nas/backups /mnt/nas/backups cifs user=user,pass=resu,uid=1000,gid=1000,_netdev,vers=3.0 0 0
|
|
|
|
|
2022-05-10 10:08:24 -07:00
|
|
|
/dev/md0 /mnt/md0 ext4 defaults,nofail,discard 0 0
|
2022-06-23 22:00:44 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
## Example docker-compose.yml for Web app
|
|
|
|
```
|
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
<SERVICE>:
|
|
|
|
container_name: <SERVICE>
|
|
|
|
image:
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
environment:
|
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
labels:
|
|
|
|
- traefik.http.routers.<SERVICE>.rule=Host(`<SERVICE>.jafner.net`)
|
|
|
|
- traefik.http.routers.<SERVICE>.tls.certresolver=lets-encrypt
|
|
|
|
# - traefik.http.routers.<SERVICE>.middlewares=lan-only@file # optional lan-only testing
|
|
|
|
|
|
|
|
networks:
|
|
|
|
web:
|
|
|
|
external: true
|
2022-05-10 10:08:24 -07:00
|
|
|
```
|