https://github.com/magicsunday/webtrees-docker
Docker files to create PHP/Nginx runtime environment for webtrees
https://github.com/magicsunday/webtrees-docker
Last synced: 3 months ago
JSON representation
Docker files to create PHP/Nginx runtime environment for webtrees
- Host: GitHub
- URL: https://github.com/magicsunday/webtrees-docker
- Owner: magicsunday
- License: mit
- Created: 2024-10-02T13:37:59.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-02-24T09:34:57.000Z (4 months ago)
- Last Synced: 2025-02-24T10:33:11.458Z (4 months ago)
- Language: Shell
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This document describes the development environment for my webtrees project.
# Requirements
This project requires the following software to be installed:
* docker
* docker compose
* git
* bashIn addition, some variables must be defined and prerequisites must be met for the project.
# Setup
* After cloning the repository from `[email protected]:magicsunday/webtrees-docker.git` simply run the setup script::```shell
./scripts/setup.sh
```* This script will create the `.env` file for you and will ask you for the necessary variables.
* If you run this project on your own host or a local machine, you can define the credentials by yourself.* Adjust the settings in the `.env` file to your needs
* Start the containers using `make up`
# Buildbox
Use `make bash` to open a bash inside the build box as the configured user.# PHP Container
```shell
docker compose exec phpfpm bash
```# Sonstiges
## Docker
Um Docker als nicht root-Benutzer ausführen zu können, ist es erforderlich den Benutzer zur "docker"-Gruppe hinzuzufügen.Hierzu bitte auch https://docs.docker.com/engine/security/#docker-daemon-attack-surface lesen, hinsichtlich möglicher sicherheitsrelevanter Auswirkungen.
* Create the docker group if it does not exist
```shell
sudo groupadd docker
```
* Add your user to the docker group
```shell
sudo usermod -aG docker $USER
```
* Benutzer abmelden und neu anmelden
* Überprüfung ob Gruppe gesetzt ist
```shell
groups
```## Lokale Docker-Registry
Beim Verwendung meiner lokalen Docker-Registry (192.168.178.25:5000) kam es zum Fehler:Error response from daemon: Get https://192.168.178.25:5000/v2/: http: server gave HTTP response to HTTPS client
Um den Zugriff auch über HTTP zu erlauben, muss die Datei
/etc/docker/daemon.json
angepasst werden. Hier muss im JSON folgender Eintrag hinzugefügt werden:
```json
{
..."insecure-registries": [
"http://192.168.178.25:5000"
]
}
```anschließend noch ein Neustart des Docker Dämons:
```shell
sudo service docker restart
```