Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] In the `docker-compose.yml` there's several values that are defined via environment variables. This

[DiscordArchive] In the `docker-compose.yml` there's several values that are defined via environment variables. This

[DiscordArchive] In the `docker-compose.yml` there's several values that are defined via environment variables. This

rektbyfaith
Administrator
0
04-14-2021, 04:03 AM
#1
Archived author: ReynoldsCahoon • Posted: 2021-04-14T04:03:36.341000+00:00
Original source

In the `docker-compose.yml` there's several values that are defined via environment variables. This makes sense to me. What I don't understand is the syntax in a line like this:

```yaml
ports:
${WORLD_EXTERNAL_PORT:-8085}:8085
```

The `WORLD_EXTERNAL_PORT` value is `8085`, as set in the `.env` file, but is the `:-8085` a default value, provided there isn't an environment variable or something?
rektbyfaith
04-14-2021, 04:03 AM #1

Archived author: ReynoldsCahoon • Posted: 2021-04-14T04:03:36.341000+00:00
Original source

In the `docker-compose.yml` there's several values that are defined via environment variables. This makes sense to me. What I don't understand is the syntax in a line like this:

```yaml
ports:
${WORLD_EXTERNAL_PORT:-8085}:8085
```

The `WORLD_EXTERNAL_PORT` value is `8085`, as set in the `.env` file, but is the `:-8085` a default value, provided there isn't an environment variable or something?

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)