Bonjour a tous!
je galere depuis plusieurs heures a installer kresus via docker-compose
j’ai un dedié ovh, avec de deja installer et de configurer nginxproxymanager
j’ai donc modifié le docker-compose.yml pour retirer traeffik
Mon docker-compose.yml:
#################################################
# Docker compose for kresus, with mail included
#################################################
# How to use this file :
# You need docker-compose installed
# 1 - rename the docker-compose-xample.env to .env file
# 2 - generate a password
# htpasswd -bn my_user my_password |awk -F':' '{print $2}'
# This will generate a password for my_user, copy it
# 3 -replace all vars in the .env file
# 4 - rename docker-compose.example.yml to docker-compose.yml
# 5 - docker-compose up -d
##################################################
version: '2'
services:
############################################
# Database
############################################
db:
image: postgres:14.1-alpine
restart: always
environment:
- KRESUS_DB_DATABASE=postgres
- KRESUS_DB_USER=postgres
- KRESUS_DB_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PUID=1001
- PGID=1001
- KRESUS_DB_POSTGRES_PATH=/home/user/data/kresus.db
- KRESUS_DB_TYPE=postgres
- KRESUS_DB_HOST=192.168.9.7
- KRESUS_DB_PORT=5432
- KRESUS_DB_NAME=kresus
ports:
- '5432:5432'
volumes:
- /srv/docker/container/kresus/db:/var/lib/postgresql/data
networks:
default:
ipv4_address: 192.168.9.7
############################################
# Postfix
############################################
postfix:
image: mwader/postfix-relay
environment:
- POSTFIX_myhostname=${MY_DOMAIN}
- OPENDKIM_DOMAINS=${MY_DOMAIN}
- PUID=1001
- PGID=1001
volumes:
- /srv/docker/container/kresus/postfix:/etc/opendkim/keys
networks:
default:
ipv4_address: 192.168.9.8
##############################################
# KRESUS
##############################################
kresus:
image: bnjbvr/kresus
volumes:
- /srv/docker/container/kresus/data:/home/user/data
- /srv/docker/container/kresus/cache:/home/user/.cache
- /srv/docker/container/kresus/woob:/woob
- /srv/docker/container/kresus/config:/opt
environment:
- LOCAL_USER_ID=1001
- PUID=1001
- PGID=1001
- KRESUS_DB_POSTGRES_PATH=/home/user/data/kresus.db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- KRESUS_DB_TYPE=postgres
- KRESUS_DB_HOST=192.168.9.7
- KRESUS_DB_PORT=5432
- KRESUS_DB_USER=postgres
- KRESUS_DB_PASSWORD=postgres
- KRESUS_DB_NAME=kresus
links:
- postfix:postfix
depends_on:
- db
networks:
default:
ipv4_address: 192.168.9.6
restart: unless-stopped
networks:
default:
external:
name: CLOUD_Net
volumes:
db_data:
et mon docker-compose.env
# The full FQDN of the server (or your IP address)
MY_DOMAIN=5.XXX.XXX.X37
# My mail address (to receive letsencrypt alerts)
MAIL_ADDRESS=moi@moi.net
# My username (for http identification)
MY_USERNAME=moi
# My password
# generated by the command (default : test)
# htpasswd -bn me my_password |awk -F':' '{print $2}'
MY_PASSWD=blalabla
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
KRESUS_DIR=/home/user/data
KRESUS_DB_POSTGRES_PATH=/home/user/data/kresus.db
KRESUS_WOOB_DIR=/woob
KRESUS_EMAIL_TRANSPORT=smtp
KRESUS_EMAIL_FROM=moi@moi.net
KRESUS_EMAIL_HOST=ssl0.ovh.net
KRESUS_EMAIL_PORT=465
KRESUS_EMAIL_USER=moi@moi.net
KRESUS_EMAIL_PASSWORD
KRESUS_DB_TYPE=postgres
KRESUS_DB_HOST=192.168.9.7
KRESUS_DB_PORT=5432
KRESUS_DB_USER=postgres
KRESUS_DB_PASSWORD=postgres
KRESUS_DB_NAME=kresus
c’est pas tres propre et je ne suis pas sur du passage des variables d’env, du coup je les ai mise un peu partout
maintenant les containers se lancent bien avec docker-compose mais quand je regarde le log du container kresus, il boucle avec l’erreur suivante:
[ENTRYPOINT] Done updating Woob dependencies.
[ENTRYPOINT] Trying to update kresus...
/entrypoint.sh: line 38: yarn: command not found
[ENTRYPOINT] Starting with UID : 1001
usermod: no changes
[ENTRYPOINT] Setting fake values for git config...
[ENTRYPOINT] Updating woob...
Already up to date.
[ENTRYPOINT] Done updating.
[ENTRYPOINT] Updating Woob dependencies...
The directory '/home/user/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/user/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: lxml in /usr/local/lib/python3.7/dist-packages (from -r /tmp/requirements.txt (line 1)) (4.9.1)
Requirement already satisfied: cssselect in /usr/local/lib/python3.7/dist-packages (from -r /tmp/requirements.txt (line 2)) (1.1.0)
Requirement already satisfied: requests>=2.0.0 in /usr/local/lib/python3.7/dist-packages (from -r /tmp/requirements.txt (line 3)) (2.28.1)
Requirement already satisfied: python-dateutil in /usr/local/lib/python3.7/dist-packages (from -r /tmp/requirements.txt (line 4)) (2.8.2)
Requirement already satisfied: PyYAML in /usr/local/lib/python3.7/dist-packages (from -r /tmp/requirements.txt (line 5)) (6.0)
Requirement already satisfied: html2text>=3.200 in /usr/local/lib/python3.7/dist-packages (from -r /tmp/requirements.txt (line 6)) (2020.1.16)
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from -r /tmp/requirements.txt (line 7)) (1.12.0)
Requirement already satisfied: unidecode in /usr/local/lib/python3.7/dist-packages (from -r /tmp/requirements.txt (line 8)) (1.3.4)
Requirement already satisfied: Pillow in /usr/local/lib/python3.7/dist-packages (from -r /tmp/requirements.txt (line 9)) (9.1.1)
Requirement already satisfied: Babel in /usr/local/lib/python3.7/dist-packages (from -r /tmp/requirements.txt (line 10)) (2.10.3)
Requirement already satisfied: charset-normalizer<3,>=2 in /usr/local/lib/python3.7/dist-packages (from requests>=2.0.0->-r /tmp/requirements.txt (line 3)) (2.0.12)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3/dist-packages (from requests>=2.0.0->-r /tmp/requirements.txt (line 3)) (1.24.1)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.7/dist-packages (from requests>=2.0.0->-r /tmp/requirements.txt (line 3)) (3.3)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/dist-packages (from requests>=2.0.0->-r /tmp/requirements.txt (line 3)) (2022.6.15)
Requirement already satisfied: pytz>=2015.7 in /usr/local/lib/python3.7/dist-packages (from Babel->-r /tmp/requirements.txt (line 10)) (2022.1)
[ENTRYPOINT] Done updating Woob dependencies.
[ENTRYPOINT] Trying to update kresus...
/entrypoint.sh: line 38: yarn: command not found
Je vous remercie d’avance du support car je ne sais pas trop ou commencer!