Skip to content

Commit d6bb874

Browse files
committed
Update getting-started.md
1 parent 9cc2d93 commit d6bb874

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

docs/about/getting-started.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,17 @@ services:
8383
# Set to your machine/container IP where m3u editor will be accessed, if not localhost
8484
- REVERB_HOST=localhost # or 192.168.0.123 or your-custom-tld.com
8585
- REVERB_SCHEME=http # or https if using custom TLD with https
86-
- ENABLE_POSTGRES=true # <----- start here
87-
- PG_DATABASE=${PG_DATABASE} # <----- DB name
88-
- PG_USER=${PG_USER} # <----- DB user
89-
- PG_PASSWORD=${PG_PASSWORD} # <----- DB password
90-
- PG_PORT=${PG_PORT:-5432} # <----- DB port (optional, defaults to 5432)
91-
- DB_CONNECTION=pgsql # <----- set to `pgsql` (default is `sqlite`)
92-
- DB_HOST=localhost # <----- make sure set to `localhost`
93-
- DB_PORT=${PG_PORT:-5432} # <----- using default Postgres port
94-
- DB_DATABASE=${PG_DATABASE} # <----- should match `PG_DATABASE`
95-
- DB_USERNAME=${PG_USER} # <----- should match `PG_USER`
96-
- DB_PASSWORD=${PG_PASSWORD} # <----- should match `PG_PASSWORD`
86+
- ENABLE_POSTGRES=true # <----- start here
87+
- PG_DATABASE=${PG_DATABASE:-m3ue} # <----- DB name
88+
- PG_USER=${PG_USER:-m3ue} # <----- DB user
89+
- PG_PASSWORD=${PG_PASSWORD:-secret} # <----- DB password
90+
- PG_PORT=${PG_PORT:-5432} # <----- DB port (optional, defaults to 5432)
91+
- DB_CONNECTION=pgsql # <----- set to `pgsql` (default is `sqlite`)
92+
- DB_HOST=localhost # <----- make sure set to `localhost`
93+
- DB_PORT=${PG_PORT:-5432} # <----- using default Postgres port
94+
- DB_DATABASE=${PG_DATABASE:-m3ue} # <----- should match `PG_DATABASE`
95+
- DB_USERNAME=${PG_USER:-m3ue} # <----- should match `PG_USER`
96+
- DB_PASSWORD=${PG_PASSWORD:-secret} # <----- should match `PG_PASSWORD`
9797
volumes:
9898
# This will allow you to reuse the data across container recreates
9999
# Format is: <host_directory_path>:<container_path>
@@ -110,12 +110,13 @@ volumes:
110110
pgdata: # <----- created named volume for Postgres store
111111
```
112112
113-
then make sure to add `.env` variables in the root of project (where your `docker-compose.yaml` lives):
113+
then make sure to add `.env` variables in the root of project (where your `docker-compose.yaml` lives) if you want to override the default values, e.g.:
114114

115115
```
116-
PG_DATABASE=m3ue
117-
PG_USER=m3ue
118-
PG_PASSWORD=secret
116+
PG_DATABASE=database_name
117+
PG_USER=database_user
118+
PG_PASSWORD=a_password
119+
PG_PORT=65432
119120
```
120121
121122
---

0 commit comments

Comments
 (0)