docker
docker copied to clipboard
Can't install Akaunting through portainer
Hello,
I'm trying to install Akaunting through portainer using the following Docker composer.
the installation is going well and I can access the login portal but nothing happens afterwards.
You will find below the script used and the database log with the error message obtained.
Could you please advice me
`version: '3.7'
services:
akaunting: container_name: akaunting image: docker.io/akaunting/akaunting:latest build: context: . ports: - 8080:80 volumes: - /volume2/docker/akaunting/data:/var/www/html/storage - /volume2/docker/akaunting/modules:/var/www/html/modules restart: unless-stopped environment: APP_URL: "http://192.168.1.13:8080" LOCALE: "en-US" DB_HOST: "akaunting-db" DB_DATABASE: "akaunting" DB_USERNAME: "admin" DB_PASSWORD: "akaunting_password" DB_PREFIX: "asd_" COMPANY_NAME: "My Company" COMPANY_EMAIL: "[email protected]" ADMIN_EMAIL: "[email protected]" ADMIN_PASSWORD: "password" depends_on: - akaunting-db
akaunting-db: container_name: akaunting-db image: mariadb volumes: - /volume2/docker/akaunting/db:/var/lib/mysql environment: MYSQL_DATABASE: akaunting MYSQL_USER: admin MYSQL_PASSWORD: akaunting_password MYSQL_RANDOM_ROOT_PASSWORD: "yes" restart: unless-stopped `

have same issue, maybe it is not okay for synology nas
I am quite into the same issue, trying to deploy Akaunting and a MariaDB through Portainer, as a stack. Obviously the docker-compose file present in the main project can't work, because those .env files can not be created before the stack is even started, so I tried to follow your approach too @Chouaib99 inserting the environmental variables directly into the docker-compose file (they come from the .env example files in the repo). I don't paste it here because it is quite similar to yours and so far it doesn't work here either.
I experience 2 different (and probably related) problems:
- I can get the login page to load without the setup mode on (and can't do anything from there, despite having inserted the login credentials as environment-parameters in the compose file), but as soon as I try that "akaunting_setup=true" to supposedly trigger the setup wizard, I can't reach any page anymore.
- the database is randomly dead, short after starting it: I see it disappearing from the docker network, no IP assigned. I use a frontend and a backend setup, with the backend isolated from the internet), even if the container itself is running.
Looks like a database related issue, I didn't dig any further for now, but as soon as the front-end tries to reach the db, something goes wrong.
I would appreciate a more clear installation section on the main repo that may include the Portainer (or anyways the "pure compose approach, not just the bare-metal way) scenario.
Once running, I plan(ned) to set everything behind a reverse proxy, but am currently stuck here...
Cheers!
Quite sad to see that basically not a single issue had ever had any response, is the project still actively maintained?
I have succeeded by using the Projects tab under container manager, to deploy stack. I created a folder named 'akaunting' and two subfolders named 'db' and 'env'. I copied the example env files and uploaded to the env folder where I changed the variables to match my needs. However, when I go to login, nothing happens. I get the following on the front end:
See attached logs. I'm just getting started with Docker stuff, so If I've done something stupid, I apologize.