migrated to 2 containers

This commit is contained in:
2020-07-05 15:19:09 +02:00
parent 0edc02eb37
commit a7e6d9ce90
4 changed files with 11 additions and 9 deletions

View File

@@ -51,7 +51,6 @@ RUN set -ex; \
pwgen \
tzdata \
xz-utils \
prometheus-mysqld-exporter \
; \
rm -rf /var/lib/apt/lists/*
@@ -94,11 +93,12 @@ RUN set -ex; \
| xargs -rt -0 sed -Ei 's/^(bind-address|log)/#&/'; \
# don't reverse lookup hostnames, they are usually another container
echo '[mysqld]\nskip-host-cache\nskip-name-resolve' > /etc/mysql/conf.d/docker.cnf; \
echo '[client]\nhost=localhost\nuser=prometheus\npassword=prom01\n' >/etc/prometheus-mysql-exporter
apt-get clean -y;
VOLUME /var/lib/mysql
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
EXPOSE 9104 3306
EXPOSE 3306
CMD ["mysqld"]