Replace f@h container with lsio one
Also move configuration into web UI, just because it's easier
This commit is contained in:
parent
1afc28ec17
commit
55eca663a9
3 changed files with 13 additions and 24 deletions
|
@ -2,15 +2,15 @@ version: "2.3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
folding-at-home:
|
folding-at-home:
|
||||||
image: yurinnick/folding-at-home:latest
|
image: linuxserver/foldingathome:latest
|
||||||
container_name: folding-at-home
|
container_name: folding-at-home
|
||||||
command: --allow 0/0 --web-allow 0/0 --power light --cpu-usage 35
|
cpus: 1
|
||||||
environment:
|
environment:
|
||||||
- USER=TheOrangeOne
|
- TZ=Europe/London
|
||||||
- TEAM=223518
|
- PUID={{ docker_user.id }}
|
||||||
- PASSKEY={{ foh_token }}
|
- GUID={{ docker_user.id }}
|
||||||
- ENABLE_GPU=false
|
volumes:
|
||||||
- ENABLE_SMP=true
|
- ./config:/config
|
||||||
ports:
|
ports:
|
||||||
- 7396:7396
|
- 7396:7396
|
||||||
- 36330:36330
|
- 36330:36330
|
||||||
|
|
|
@ -1,27 +1,24 @@
|
||||||
- name: Include foh variables
|
- name: Create folding-at-home directory
|
||||||
include_vars: folding-at-home.yml
|
|
||||||
|
|
||||||
- name: Create foh directory
|
|
||||||
file:
|
file:
|
||||||
path: /opt/foh
|
path: /opt/folding-at-home
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ docker_user.name }}"
|
owner: "{{ docker_user.name }}"
|
||||||
mode: "{{ docker_compose_directory_mask }}"
|
mode: "{{ docker_compose_directory_mask }}"
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Install foh compose file
|
- name: Install folding@home compose file
|
||||||
template:
|
template:
|
||||||
src: files/folding-at-home/docker-compose.yml
|
src: files/folding-at-home/docker-compose.yml
|
||||||
dest: /opt/foh/docker-compose.yml
|
dest: /opt/folding-at-home/docker-compose.yml
|
||||||
mode: "{{ docker_compose_file_mask }}"
|
mode: "{{ docker_compose_file_mask }}"
|
||||||
owner: "{{ docker_user.name }}"
|
owner: "{{ docker_user.name }}"
|
||||||
validate: /usr/bin/docker-compose -f %s config
|
validate: /usr/bin/docker-compose -f %s config
|
||||||
register: compose_file
|
register: compose_file
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Cycle foh container
|
- name: Cycle folding@home container
|
||||||
docker_compose:
|
docker_compose:
|
||||||
project_src: /opt/foh
|
project_src: /opt/folding-at-home
|
||||||
pull: true
|
pull: true
|
||||||
remove_orphans: true
|
remove_orphans: true
|
||||||
remove_volumes: true
|
remove_volumes: true
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
foh_token: !vault |
|
|
||||||
$ANSIBLE_VAULT;1.1;AES256
|
|
||||||
38393937366266353162336339643261613138616135643163393464353339653761623833303334
|
|
||||||
3136633535616165383561623863346630326264663564360a613733313835646333373464313033
|
|
||||||
65303338646665346532653232626535363665636132333065343133636332383663393034373863
|
|
||||||
3437626337666539610a656264653135656566313133383935396233313366633961333637373363
|
|
||||||
30326130623936383437636465393262633735656563323337666235373834363833396336343866
|
|
||||||
6362626138313266633032633466386461643737336266623363
|
|
Loading…
Reference in a new issue