|
@@ -25,28 +25,17 @@ machine, even though the application within the container is listening on `21017
|
|
|
| Property | Description |
|
|
|
| --- | --- |
|
|
|
| `COMPOSE_PROJECT_NAME` | Should be a unique name for this installation, especially if you have multiple instances of Musare on the same machine. |
|
|
|
-| `RESTART_POLICY` | Restart policy for Docker containers, values can be found [here](https://docs.docker.com/config/containers/start-containers-automatically/). |
|
|
|
| `DOCKER_COMMAND` | Should be either `docker` or `podman`. |
|
|
|
| `CONTAINER_MODE` | Should be either `production` or `local`. |
|
|
|
| `APP_ENV` | Should be either `production` or `development`. |
|
|
|
-| `BACKEND_HOST` | Backend container host. Only used for development mode. |
|
|
|
-| `BACKEND_PORT` | Backend container port. Only used for development mode. |
|
|
|
-| `FRONTEND_HOST` | Frontend container host. |
|
|
|
-| `FRONTEND_PORT` | Frontend container port. |
|
|
|
| `FRONTEND_CLIENT_PORT` | Should be the port on which the frontend will be accessible from, usually port `80`, or `443` if using SSL. Only used when running in development mode. |
|
|
|
| `FRONTEND_DEV_PORT` | Should be the port where Vite's dev server will be accessible from, should always be port `81` for Docker since nginx listens on port 80, and is recommended to be port `80` for non-Docker. Only used when running in development mode. |
|
|
|
| `FRONTEND_PROD_DEVTOOLS` | Whether to enable Vue dev tools in production builds. [^1] |
|
|
|
-| `MONGO_HOST` | Mongo container host. |
|
|
|
-| `MONGO_PORT` | Mongo container port. |
|
|
|
| `MONGO_ROOT_PASSWORD` | Password of the root/admin user for MongoDB. |
|
|
|
| `MONGO_USER_USERNAME` | Application username for MongoDB. |
|
|
|
| `MONGO_USER_PASSWORD` | Application password for MongoDB. |
|
|
|
-| `MONGO_DATA_LOCATION` | The location where MongoDB stores its data. Usually the `.db` folder inside the `Musare` folder. |
|
|
|
| `MONGO_VERSION` | The MongoDB version to use for scripts and docker compose. Must be numerical. Currently supported MongoDB versions are 4.0+. Always make a backup before changing this value. |
|
|
|
-| `REDIS_HOST` | Redis container host. |
|
|
|
-| `REDIS_PORT` | Redis container port. |
|
|
|
| `REDIS_PASSWORD` | Redis password. |
|
|
|
-| `REDIS_DATA_LOCATION` | The location where Redis stores its data. Usually the `.redis` folder inside the `Musare` folder. |
|
|
|
| `BACKUP_LOCATION` | Directory to store musare.sh backups. Defaults to `/backups` in script location. |
|
|
|
| `BACKUP_NAME` | Name of musare.sh backup files. Defaults to `musare-$(date +"%Y-%m-%d-%s").dump`. |
|
|
|
| `MUSARE_SITENAME` | Should be the name of the site. [^1] |
|
|
@@ -173,13 +162,20 @@ For more information on configuration files please refer to the
|
|
|
You may want to override the docker-compose files in some specific cases.
|
|
|
For this, you can create a `docker-compose.override.yml` file.
|
|
|
|
|
|
-For example, to expose the backend port:
|
|
|
+For example, to expose the frontend port:
|
|
|
|
|
|
```yml
|
|
|
services:
|
|
|
- backend:
|
|
|
+ frontend:
|
|
|
ports:
|
|
|
- - "${BACKEND_HOST}:${BACKEND_PORT}:8080"
|
|
|
+ - "127.0.0.1:1234:80"
|
|
|
```
|
|
|
|
|
|
-This assumes that you have also set `BACKEND_PORT` inside your `.env` file.
|
|
|
+...and to expose the backend debug port:
|
|
|
+
|
|
|
+```yml
|
|
|
+services:
|
|
|
+ backend:
|
|
|
+ ports:
|
|
|
+ - "127.0.0.1:9229:9229"
|
|
|
+```
|