Comments (3)
I'm not sure what's going on. I copied your compose file above exactly, other than changing the application volume to be a local path, and it worked fine for me
Did you let the setup wizard get through everything? It does take a little bit the first time to set up all the database tables.
from webtrees-docker.
Hey Nathan, I appreciate your prompt response.
I was actually mounting the database volume to - /mnt/md0/webtrees/data
. It indeed does work when mounted to db_data
, but when I try to mount it to another location I see the following error in the database container logs Access denied for user
root@
xxx.xx.x.e (user password: NO)
.
from webtrees-docker.
Mounting the data directories to a local file path should be fine, I do that with my personal installation. Example docker compose:
version: "3"
services:
app:
depends_on:
- db
environment:
PRETTY_URLS: "1"
HTTPS: "0"
HTTPS_REDIRECT: "0"
LANG: "en-US"
BASE_URL: "http://localhost:4080"
DB_TYPE: "mysql"
DB_HOST: "db"
DB_PORT: "3306"
DB_USER: "webtrees"
DB_PASS: "badpassword"
DB_NAME: "webtrees"
DB_PREFIX: "wt_"
WT_USER: "username"
WT_NAME: "Full Name"
WT_PASS: "mybadpassword"
WT_EMAIL: "[email protected]"
PUID: "1000"
PGID: "1000"
image: ghcr.io/nathanvaughn/webtrees:latest
ports:
- 4080:80
restart: unless-stopped
volumes:
- /tmp/webtrees_app_data:/var/www/webtrees/data/
db:
environment:
MARIADB_DATABASE: "webtrees"
MARIADB_USER: "webtrees"
MARIADB_ROOT_PASSWORD: "badpassword"
MARIADB_PASSWORD: "badpassword"
image: docker.io/library/mariadb:latest
restart: unless-stopped
volumes:
- /tmp/webtrees_db_data:/var/lib/mysql
If you had both Webtrees and the Database pointing to /mnt/md0/webtrees/data
, I could see how this would cause problems, they shouldn't be sharing a directory.
from webtrees-docker.
Related Issues (20)
- docker-compose not working HOT 4
- SQLSTATE[HY000] [2002] No such file or directory (SQL: CREATE DATABASE IF NOT EXISTS HOT 7
- Issues with 2.1.16 (500 internal error) HOT 7
- media volume mounted incorrectely HOT 1
- database user and schema creation HOT 5
- Reverse proxy (i think) setup issue HOT 7
- Supplying user & password in variables does not work HOT 10
- Cant get this to run HOT 1
- Delay required after Apache is launched HOT 3
- Media mount location changed from previous versions HOT 2
- Docker-Compuse Up not working, potentiol problem with start of apache2 HOT 6
- Setting up fail2ban HOT 2
- Logs do not show up in /admin/logs HOT 2
- Find duplicates not working HOT 3
- How to enable maps in webtrees? HOT 3
- Routing traffic to container HOT 2
- Connection refused HOT 2
- Latest/2.1.20 only available for linux/arm64 HOT 3
- Database utf8_unicode_ci collation not supported HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webtrees-docker.