diff --git a/docker-compose.yml b/docker-compose.yml index c194a3c..84c419a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -44,7 +44,7 @@ services: container_name: pinpoint-mysql restart: always - image: pinpointdocker/pinpoint-mysql:${PINPOINT_VERSION} + image: "pinpointdocker/pinpoint-mysql:${PINPOINT_VERSION}" hostname: pinpoint-mysql ports: - "13306:3306" diff --git a/pinpoint-mysql/.env b/pinpoint-mysql/.env index f54d43d..ac6c27b 100644 --- a/pinpoint-mysql/.env +++ b/pinpoint-mysql/.env @@ -1 +1,7 @@ -PINPOINT_VERSION=1.8.0 \ No newline at end of file +PINPOINT_VERSION=1.8.0 + +### Pinpoint-mysql +MYSQL_ROOT_PASSWORD=root123 +MYSQL_USER=admin +MYSQL_PASSWORD=admin +MYSQL_DATABASE=pinpoint \ No newline at end of file diff --git a/pinpoint-mysql/docker-compose.yml b/pinpoint-mysql/docker-compose.yml new file mode 100644 index 0000000..2a04ccf --- /dev/null +++ b/pinpoint-mysql/docker-compose.yml @@ -0,0 +1,25 @@ +version: "3.6" + +services: + pinpoint-mysql: + build: + context: . + dockerfile: Dockerfile + args: + - PINPOINT_VERSION=${PINPOINT_VERSION} + + container_name: pinpoint-mysql + restart: always + image: "pinpointdocker/pinpoint-mysql:${PINPOINT_VERSION}" + + hostname: pinpoint-mysql + ports: + - "13306:3306" + environment: + - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} + - MYSQL_USER=${MYSQL_USER} + - MYSQL_PASSWORD=${MYSQL_PASSWORD} + - MYSQL_DATABASE=${MYSQL_DATABASE} + + volumes: + - ./var/lib/mysql