expose mysql port on dev

This commit is contained in:
Rodolfo Berrios
2022-11-13 19:28:50 -03:00
parent 3ca890a2b6
commit 35f66647e3
2 changed files with 4 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ PROTOCOL ?= https
SERVICE ?= php
ENCRYPTION_KEY ?=
EMAIL_HTTPS ?= mail@yourdomain.tld
DB_PORT ?= 8836
HTTP_PORT ?= 80
HTTPS_PORT ?= 443
PORT = $(shell [ "${PROTOCOL}" = "http" ] && echo \${HTTP_PORT} || echo \${HTTPS_PORT})
@@ -40,6 +41,7 @@ LICENSE ?= $(shell stty -echo; read -p "Chevereto V4 License key: 🔑" license;
ACME_CHALLENGE = $(shell [ ! -d ".well-known" ] && mkdir -p .well-known)
DOCKER_COMPOSE = $(shell ${ACME_CHALLENGE} echo @CONTAINER_BASENAME=\${CONTAINER_BASENAME} \
SOURCE=\${SOURCE} \
DB_PORT=\${DB_PORT} \
HTTP_PORT=\${HTTP_PORT} \
HTTPS_PORT=\${HTTPS_PORT} \
HTTPS_CERT=\${HTTPS_CERT} \

View File

@@ -8,6 +8,8 @@ services:
- chevereto
volumes:
- database:/var/lib/mysql
ports:
- ${DB_PORT}:3306
restart: always
environment:
MYSQL_ROOT_PASSWORD: password