diff --git a/build-context/mysql/Dockerfile b/build-context/mysql/Dockerfile new file mode 100644 index 0000000..749761f --- /dev/null +++ b/build-context/mysql/Dockerfile @@ -0,0 +1,4 @@ +ARG MYSQL_VERSION + +FROM "mysql:${MYSQL_VERSION}" +RUN mkdir -p /tmp/mysql diff --git a/build-context/mysql/docker-data/.gitkeep b/build-context/mysql/docker-data/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/build-context/mysql/docker-data/config/db/my.cnf b/build-context/mysql/docker-data/config/db/my.cnf new file mode 100644 index 0000000..8486d1b --- /dev/null +++ b/build-context/mysql/docker-data/config/db/my.cnf @@ -0,0 +1,5 @@ +[mysqld] +innodb_buffer_pool_size = 512M +innodb_redo_log_capacity = 512M +innodb_flush_method = O_DIRECT +innodb_flush_log_at_trx_commit = 0 diff --git a/build-context/mysql/docker-data/config/docker-entrypoint-initdb.d/.gitkeep b/build-context/mysql/docker-data/config/docker-entrypoint-initdb.d/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/build-context/mysql/extras/.gitkeep b/build-context/mysql/extras/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/build-context/traccar/Dockerfile b/build-context/traccar/Dockerfile new file mode 100644 index 0000000..042ad99 --- /dev/null +++ b/build-context/traccar/Dockerfile @@ -0,0 +1,14 @@ +# For the remainder of this Dockerfile EXAMPLE_ARG_FOR_DOCKERFILE will be +# available with a value of 'must_be_available_in_dockerfile', check out the env +# file at 'env/fully.qualified.domain.name.example' for reference. +# ARG EXAMPLE_ARG_FOR_DOCKERFILE + +# Another env var, this one's needed in the example build step below: +# ARG TRACCAR_VERSION + +# Example +# FROM "traccar:${TRACCAR_VERSION}" +# RUN apt-get update && \ +# apt-get -y install \ +# somepackage-6.q16-6-extra && \ +# rm -rf /var/lib/apt/lists/* diff --git a/build-context/traccar/docker-data/.gitkeep b/build-context/traccar/docker-data/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/build-context/traccar/docker-data/config/traccar.xml b/build-context/traccar/docker-data/config/traccar.xml new file mode 100644 index 0000000..331f1b1 --- /dev/null +++ b/build-context/traccar/docker-data/config/traccar.xml @@ -0,0 +1,26 @@ + + + + + + + ./conf/default.xml + + + + com.mysql.cj.jdbc.Driver + jdbc:mysql://mysql/traccar?zeroDateTimeBehavior=round&serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false&allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode='' + traccar + t0psecret + + diff --git a/build-context/traccar/docker-data/data/.gitkeep b/build-context/traccar/docker-data/data/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/build-context/traccar/extras/.gitkeep b/build-context/traccar/extras/.gitkeep new file mode 100644 index 0000000..e69de29