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:
|
||||
folding-at-home:
|
||||
image: yurinnick/folding-at-home:latest
|
||||
image: linuxserver/foldingathome:latest
|
||||
container_name: folding-at-home
|
||||
command: --allow 0/0 --web-allow 0/0 --power light --cpu-usage 35
|
||||
cpus: 1
|
||||
environment:
|
||||
- USER=TheOrangeOne
|
||||
- TEAM=223518
|
||||
- PASSKEY={{ foh_token }}
|
||||
- ENABLE_GPU=false
|
||||
- ENABLE_SMP=true
|
||||
- TZ=Europe/London
|
||||
- PUID={{ docker_user.id }}
|
||||
- GUID={{ docker_user.id }}
|
||||
volumes:
|
||||
- ./config:/config
|
||||
ports:
|
||||
- 7396:7396
|
||||
- 36330:36330
|
||||
|
|
|
@ -1,27 +1,24 @@
|
|||
- name: Include foh variables
|
||||
include_vars: folding-at-home.yml
|
||||
|
||||
- name: Create foh directory
|
||||
- name: Create folding-at-home directory
|
||||
file:
|
||||
path: /opt/foh
|
||||
path: /opt/folding-at-home
|
||||
state: directory
|
||||
owner: "{{ docker_user.name }}"
|
||||
mode: "{{ docker_compose_directory_mask }}"
|
||||
become: true
|
||||
|
||||
- name: Install foh compose file
|
||||
- name: Install folding@home compose file
|
||||
template:
|
||||
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 }}"
|
||||
owner: "{{ docker_user.name }}"
|
||||
validate: /usr/bin/docker-compose -f %s config
|
||||
register: compose_file
|
||||
become: true
|
||||
|
||||
- name: Cycle foh container
|
||||
- name: Cycle folding@home container
|
||||
docker_compose:
|
||||
project_src: /opt/foh
|
||||
project_src: /opt/folding-at-home
|
||||
pull: true
|
||||
remove_orphans: 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