Added MariaDB to Docker compose for ARM64 (#315)

* Added option to use MariaDB instead of MySQL

* Moved MYSQL environment variables to env file
This commit is contained in:
Thibaut De Muynck
2021-04-06 03:29:04 +02:00
committed by GitHub
parent 4cd773700e
commit 62b1d8cb94
4 changed files with 24 additions and 16 deletions

View File

@@ -14,7 +14,7 @@ services:
- app
# Run webserver nginx on port 80
# Feel free to modify depending what port is already occupied
ports:
ports:
- "80:80"
#- "443:443"
networks:
@@ -32,24 +32,22 @@ services:
- ./docker/app/storage:/var/www/app/storage:rw,delegated
depends_on:
- db
networks:
- invoiceninja
networks:
- invoiceninja
extra_hosts:
- "in5.localhost:192.168.0.124 " #host and ip
db:
image: mysql:5
# When running on ARM64 use MariaDB instead of MySQL
# image: mariadb:10.4
# For auto DB backups comment out image and use the build block below
# build:
# context: ./config/mysql
ports:
- "3305:3306"
restart: always
environment:
- MYSQL_ROOT_PASSWORD=ninjaAdm1nPassword
- MYSQL_USER=ninja
- MYSQL_PASSWORD=ninja
- MYSQL_DATABASE=ninja
env_file: env
volumes:
- ./docker/mysql/data:/var/lib/mysql:rw,delegated
@@ -82,7 +80,7 @@ services:
# EOF'
# networks:
# - invoiceninja
#
#
networks:
invoiceninja:
invoiceninja: