version: '3.3'
services:
# open port 3307 for external access to the database
db:
# Per default this port is not exposed to the outside world.
# One can use 'docker-compose exec -it db mysql ...' when access to the database is needed.
# But for development it can be useful to expose the port 3306. E.g. when a graphical client
# like MySQL Workbench or DBeaver is used. Uncomment the following lines for making MariaDB available
# on port 3307 on the Docker host. A non-standard port is chosen here, because 3306 is
# often already used on the Docker host.
ports:
- "3307:3306"
Achtung! in .yml Dateien ist die richtige Einrückung wichtig, daher befindet sich die Datei auch im Anhang dieses FAQ-Artikels. In unseren Beispiel öffnen wir Port 3307 nach außen, es kann aber natürlich auch 3306 oder jeder andere freie Port sein.
Anschließend bitte die neue Konfigurationsdatei in /opt/otobo-docker/.env aufnehmen, indem wir die neue Datei mit einem ":" getrennt ans Ende stellen:
# COMPOSE_FILE=docker-compose/otobo-base.yml:docker-compose/otobo-override-https.yml
COMPOSE_FILE=docker-compose/otobo-base.yml:docker-compose/otobo-override-https.yml:docker-compose/otobo-opendb.yml