add redis password and improve documentation

This commit is contained in:
Tobias Ollive 2022-05-05 19:58:04 +02:00
parent 82aaf24b52
commit 0adf079fdf
3 changed files with 30 additions and 1 deletions

View File

@ -51,3 +51,30 @@ git clone https://yuno.oiseauroch.fr/gitea/tobias/infra-oasis21.git
sed -i 's/__POSTGRES_PASSWORD__/nextcloudstrongpassword/g' config.php secrets/librezo.secrets
sed -i 's/__COLLABORA_PASSWORD__/collaborastrongpassword/g' config.php secrets/librezo.secrets
```
4. Start traefik
```
cd traefik
docker-compose up -d
```
5. Create docker containers and volume
```
docker-compose up --no-start
```
6. Import database
```
docker cp nc.dump nextcloud-db:/nc.dmp
docker-compose up -d nextcloud-db
docker-compose exec nextcloud-db sh -c "pg_restore -d nc -U nc nc.dmp"
docker-compose exec nextcloud-db rm /nc.dmp
```
7. Copy files
```
docker cp /your/files nextcloud-app:/var/www/html/
docker-compose up -d nextcloud-app
docker-compose exec nextcloud-app chown -R www-data:www-data /var/www/html/data
```
8. change `config.php` rights
```
docker-compose exec nextcloud-app chown -R www-data:www-data /var/www/html/config
```

View File

@ -49,8 +49,8 @@ services:
image: 'bitnami/redis:latest'
container_name: redis
environment:
- ALLOW_EMPTY_PASSWORD=yes
- "TZ=Europe/Paris"
env_file: ./secrets/librezo.secrets
networks:
- nextcloud

View File

@ -4,3 +4,5 @@ POSTGRES_USER=nc
POSTGRES_HOST=nextcloud-db
username=nextcloud
password=__COLLABORA_PASSWORD__
REDIS_PASSWORD=__REDIS_PASSWORD__
REDIS_HOST_PASSWORD=$REDIS_PASSWORD