Hello,
I recently discovered Vikunja which seems to be an amazing software. So, I tried to install it using the docker-compose guideline but instead of using nginx as web server, I tried to replaced it with apache.
However, I have two main errors:
- First error:
proxy_1 | [WARNING] WEB_DOCUMENT_ROOT does not exists with path "/app"!
proxy_1 |
proxy_1 | AH00526: Syntax error on line 6 of /opt/docker/etc/httpd/conf.d/10-server.conf:
proxy_1 | DocumentRoot '/app' is not a directory, or is not readable
proxy_1 | 2022-06-28 20:34:34,255 INFO exited: apached (exit status 1; not expected)
- Second error:
db_1 | 2022-06-28 20:34:35 5 [Warning] Access denied for user 'vikunja'@'172.18.0.4' (using password: YES)
proxy_1 | 2022-06-28 20:34:36,516 INFO spawned: 'apached' with pid 26
I created a apache.conf file where I put the following instructions:
<VirtualHost *:80>
ServerName localhost
DocumentRoot http://frontend:80
RewriteEngine On
RewriteRule ^\/?(favicon\.ico|assets|audio|fonts|images|manifest\.webmanifest|robots\.txt|sw\.js|workbox-.*|api|dav|\.well-known) - [L]
RewriteRule ^(.*)$ /index.html [QSA,L]
</VirtualHost>
And the docker-compose file has the following instructions:
services:
db:
image: mariadb:10
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_ROOT_PASSWORD: supersecret
MYSQL_USER: vikunja
MYSQL_PASSWORD: secret
MYSQL_DATABASE: vikunja
volumes:
- ./db:/var/lib/mysql
restart: unless-stopped
api:
image: vikunja/api
environment:
VIKUNJA_DATABASE_HOST: db
VIKUNJA_DATABASE_PASSWORD: secret
VIKUNJA_DATABASE_TYPE: mysql
VIKUNJA_DATABASE_USER: vikunja
VIKUNJA_DATABASE_DATABASE: vikunja
volumes:
- ./files:/app/vikunja/files
depends_on:
- db
restart: unless-stopped
frontend:
image: vikunja/frontend
restart: unless-stopped
proxy:
image: webdevops/apache:latest
ports:
- 80:80
volumes:
- ./apache.conf:/etc/apache2/sites-available/vikunja.conf:ro
depends_on:
- api
- frontend
restart: unless-stopped
Thank you in advance for your help to solve those issues