refactor: new dev/prod containers
- Use a single Dockerfile for all Zeppelin services - Add a Dockerfile in project root that can be used by app hosting services - Provide a standalone and lightweight prod setup - Standalone is the same as the old setup, with mysql+nginx - Lightweight only runs bot+backend+dash, no mysql/nginx - Remove mounted mysql data folders for dev and prod - This resolves permission issues caused by the mount - The mysql service uses a regular named volume now - Simplify .env options and clearly separate different prod setups - Remove update.sh - Different setups require different update procedures, so a common update.sh no longer works
This commit is contained in:
parent
730b8c1d6b
commit
509d96ce83
30 changed files with 948 additions and 274 deletions
75
.env.example
75
.env.example
|
@ -1,3 +1,7 @@
|
|||
# ==========================
|
||||
# GENERAL OPTIONS
|
||||
# ==========================
|
||||
|
||||
# 32 character encryption key
|
||||
KEY=
|
||||
|
||||
|
@ -17,58 +21,63 @@ STAFF=
|
|||
# A comma-separated list of server IDs that should be allowed by default
|
||||
DEFAULT_ALLOWED_SERVERS=
|
||||
|
||||
# When using the Docker-based development environment, this is only used internally. The API will be available at localhost:DOCKER_DEV_WEB_PORT/api.
|
||||
API_PORT=3000
|
||||
|
||||
# Only required if relevant feature is used
|
||||
#PHISHERMAN_API_KEY=
|
||||
|
||||
# The user ID and group ID that should be used within the Docker containers
|
||||
# This should match your own user ID and group ID. Run `id -u` and `id -g` to find them.
|
||||
DOCKER_USER_UID=
|
||||
DOCKER_USER_GID=
|
||||
|
||||
#
|
||||
# DOCKER (DEVELOPMENT)
|
||||
# NOTE: You only need to fill in these values for running the development environment. See production config further below.
|
||||
#
|
||||
# ==========================
|
||||
# DEVELOPMENT
|
||||
# NOTE: You only need to fill in these values for running the development environment
|
||||
# ==========================
|
||||
|
||||
DOCKER_DEV_WEB_PORT=3300
|
||||
DEVELOPMENT_WEB_PORT=3300
|
||||
|
||||
# The MySQL database running in the container is exposed to the host on this port,
|
||||
# allowing access with database tools such as DBeaver
|
||||
DOCKER_DEV_MYSQL_PORT=3001
|
||||
DEVELOPMENT_MYSQL_PORT=3356
|
||||
# Password for the Zeppelin database user
|
||||
DOCKER_DEV_MYSQL_PASSWORD=
|
||||
DEVELOPMENT_MYSQL_PASSWORD=password
|
||||
# Password for the MySQL root user
|
||||
DOCKER_DEV_MYSQL_ROOT_PASSWORD=
|
||||
DEVELOPMENT_MYSQL_ROOT_PASSWORD=password
|
||||
|
||||
# The development environment container has an SSH server that you can connect to.
|
||||
# This is the port that server is exposed to the host on.
|
||||
DOCKER_DEV_SSH_PORT=3002
|
||||
DOCKER_DEV_SSH_PASSWORD=password
|
||||
DEVELOPMENT_SSH_PORT=3022
|
||||
DEVELOPMENT_SSH_PASSWORD=password
|
||||
|
||||
# If your user has a different UID than 1000, you might have to fill that in here to avoid permission issues
|
||||
#DOCKER_DEV_UID=1000
|
||||
#DEVELOPMENT_UID=1000
|
||||
|
||||
#
|
||||
# DOCKER (PRODUCTION)
|
||||
# NOTE: You only need to fill in these values for running the production environment. See development config above.
|
||||
#
|
||||
|
||||
DOCKER_PROD_DOMAIN=
|
||||
DOCKER_PROD_WEB_PORT=443
|
||||
# ==========================
|
||||
# PRODUCTION - STANDALONE
|
||||
# NOTE: You only need to fill in these values for running the standalone production environment
|
||||
# ==========================
|
||||
|
||||
STANDALONE_DOMAIN=
|
||||
|
||||
STANDALONE_WEB_PORT=443
|
||||
|
||||
# The MySQL database running in the container is exposed to the host on this port,
|
||||
# allowing access with database tools such as DBeaver
|
||||
DOCKER_PROD_MYSQL_PORT=3001
|
||||
STANDALONE_MYSQL_PORT=3356
|
||||
# Password for the Zeppelin database user
|
||||
DOCKER_PROD_MYSQL_PASSWORD=
|
||||
STANDALONE_MYSQL_PASSWORD=
|
||||
# Password for the MySQL root user
|
||||
DOCKER_PROD_MYSQL_ROOT_PASSWORD=
|
||||
STANDALONE_MYSQL_ROOT_PASSWORD=
|
||||
|
||||
# You only need to set these if you're running an external database.
|
||||
# In a standard setup, the database is run in a docker container.
|
||||
#DB_HOST=
|
||||
#DB_USER=
|
||||
#DB_PASSWORD=
|
||||
#DB_DATABASE=
|
||||
|
||||
# ==========================
|
||||
# PRODUCTION - LIGHTWEIGHT
|
||||
# NOTE: You only need to fill in these values for running the lightweight production environment
|
||||
# ==========================
|
||||
|
||||
# Ports where the API/dashboard are exposed on the host
|
||||
LIGHTWEIGHT_API_PORT=3001
|
||||
LIGHTWEIGHT_DASHBOARD_PORT=3002
|
||||
|
||||
LIGHTWEIGHT_DB_HOST=
|
||||
LIGHTWEIGHT_DB_PORT=
|
||||
LIGHTWEIGHT_DB_USER=
|
||||
LIGHTWEIGHT_DB_PASSWORD=
|
||||
LIGHTWEIGHT_DB_DATABASE=
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue