Closed MazenS closed 5 months ago
I think you can close the issue - not sure what happened but after redeploying the stack everything looks to be working.
Super pleased though!
I have the same issue. Redeploying the stack did not solve it for me. Tried running your code with no luck.
Ok when I get home il double check and repost my configuration. There may have been some drunken tinkering. I'm not sure though
Ah yeah so it looks like the only change I made was to create the storage volumes outside of where docker usually saves them. Maybe Portainer doesn't have the correct rights there.
version: "3.8"
services:
app:
image: ghcr.io/danielbrendel/hortusfox-web:latest
ports:
- "1983:80"
volumes:
- /home/USER/Documents/Docker/hortusfox/images:/var/www/html/public/img
- /home/USER/Documents/Docker/hortusfox/logs:/var/www/html/app/logs
- /home/USER/Documents/Docker/hortusfox/backup:/var/www/html/public/backup
- /home/USER/Documents/Docker/hortusfox/themes:/var/www/html/public/themes
- /home/USER/Documents/Docker/hortusfox/migrate:/var/www/html/app/migrations
environment:
APP_ADMIN_EMAIL: "myemail"
APP_ADMIN_PASSWORD: "mypassword"
DB_HOST: db
DB_PORT: 3306
DB_DATABASE: hortusfox
DB_USERNAME: user
DB_PASSWORD: password
DB_CHARSET: "utf8mb4"
depends_on:
- db
db:
image: mariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: my-secret-pw
MYSQL_DATABASE: hortusfox
MYSQL_USER: user
MYSQL_PASSWORD: password
ports:
- "3306:3306"
volumes:
- /home/USER/Documents/Docker/hortusfox/db_data:/var/lib/mysql
volumes:
db_data:
app_images:
app_logs:
app_backup:
app_themes:
app_migrate:
Resolved due to found workaround/fix.
Hello - having trouble deploying Hortusfox from Portainer. I'm sure I've missed something obvious. Thanks in advance for the help
Yaml
Log from db-1
Log from app-1
Waiting for database to be available... Attempt 1