3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-25 18:25:03 +00:00

Unbound mysql port to host; made project name an env variable

This commit is contained in:
David Wang 2023-01-17 15:52:27 -08:00
parent ab2f0e6251
commit 2ceee13a1f
2 changed files with 18 additions and 5 deletions

View file

@ -1,5 +1,5 @@
version: '3'
name: zeppelin-prod
name: ${PROJECT_NAME:-zeppelin-prod}
services:
nginx:
build:
@ -30,8 +30,11 @@ services:
MYSQL_DATABASE: zeppelin
MYSQL_USER: zeppelin
MYSQL_PASSWORD: ${DOCKER_PROD_MYSQL_PASSWORD?:Missing DOCKER_PROD_MYSQL_PASSWORD}
ports:
- ${DOCKER_PROD_MYSQL_PORT:?Missing DOCKER_PROD_MYSQL_PORT}:3306
expose:
- 3306
#Comment the expose section above AND uncomment the ports section below if the database needs to be accessible from host computer or from outside.
#ports:
# - ${DOCKER_PROD_MYSQL_PORT:-3306}:3306
volumes:
- ./docker/production/data/mysql:/var/lib/mysql
command: --authentication-policy=mysql_native_password