mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-12 19:48:47 +00:00
syncthing: don't run in host network mode, specify uid/gid
This commit is contained in:
parent
6f404fb27b
commit
73a42c66fa
2 changed files with 11 additions and 1 deletions
|
@ -12,6 +12,10 @@ syncthing_data_directory: "{{ samba_shares_root }}/syncthing"
|
||||||
syncthing_volumes:
|
syncthing_volumes:
|
||||||
- "{{ syncthing_data_directory }}:/var/syncthing/"
|
- "{{ syncthing_data_directory }}:/var/syncthing/"
|
||||||
|
|
||||||
|
syncthing_user_id: "0"
|
||||||
|
syncthing_group_id: "0"
|
||||||
|
|
||||||
|
|
||||||
# network
|
# network
|
||||||
syncthing_port: 8384
|
syncthing_port: 8384
|
||||||
syncthing_hostname: syncthing
|
syncthing_hostname: syncthing
|
||||||
|
|
|
@ -11,7 +11,13 @@
|
||||||
name: syncthing
|
name: syncthing
|
||||||
image: syncthing/syncthing:latest
|
image: syncthing/syncthing:latest
|
||||||
pull: true
|
pull: true
|
||||||
network_mode: host
|
ports:
|
||||||
|
- "8384:8384"
|
||||||
|
- "22000:22000/tcp"
|
||||||
|
- "22000:22000/udp"
|
||||||
|
env:
|
||||||
|
PUID: "{{ syncthing_user_id }}"
|
||||||
|
PGID: "{{ syncthing_group_id }}"
|
||||||
volumes: "{{ syncthing_volumes }}"
|
volumes: "{{ syncthing_volumes }}"
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
memory: "{{ syncthing_memory }}"
|
memory: "{{ syncthing_memory }}"
|
||||||
|
|
Loading…
Reference in a new issue