forked from finn/tinyboard
33 lines
899 B
YAML
33 lines
899 B
YAML
services:
|
|
autossh:
|
|
image: spoke-autossh
|
|
container_name: spoke-autossh
|
|
restart: always
|
|
network_mode: host
|
|
environment:
|
|
- AUTOSSH_GATETIME=0
|
|
command: >
|
|
autossh -M 0 -NT
|
|
-o "ServerAliveInterval=60"
|
|
-o "ServerAliveCountMax=3"
|
|
-R 11111:localhost:22
|
|
-i /home/armbian/.ssh/hubkey
|
|
armbian@hub.example.com
|
|
volumes:
|
|
- /home/armbian/.ssh/hubkey:/home/armbian/.ssh/hubkey:ro
|
|
- /home/armbian/.ssh/known_hosts:/home/armbian/.ssh/known_hosts:ro
|
|
syncthing:
|
|
image: syncthing/syncthing
|
|
container_name: spoke-syncthing
|
|
hostname: spoke-syncthing
|
|
restart: unless-stopped
|
|
user: "1000:1000"
|
|
environment:
|
|
- HOME=/var/syncthing
|
|
ports:
|
|
- "127.0.0.1:8384:8384"
|
|
- "22000:22000"
|
|
volumes:
|
|
- /home/armbian/st/config:/var/syncthing/config
|
|
- /home/armbian/st/data:/var/syncthing/data
|