Skip to content

Commit a2722ee

Browse files
authored
Use POSTGRES_DB instead of init.sql
1 parent dba5bc0 commit a2722ee

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

docs/other-database-backends.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ the DB for the performance benefits, a configuration like this would be enough:
125125
container_name: tubesync-db
126126
restart: unless-stopped
127127
volumes:
128-
- /<path/to>/init.sql:/docker-entrypoint-initdb.d/init.sql
129128
- /<path/to>/tubesync-db:/var/lib/postgresql/data
130129
environment:
130+
- POSTGRES_DB=tubesync
131131
- POSTGRES_USER=postgres
132132
- POSTGRES_PASSWORD=testpassword
133133
@@ -145,15 +145,3 @@ the DB for the performance benefits, a configuration like this would be enough:
145145
depends_on:
146146
- tubesync-db
147147
```
148-
149-
Note that an `init.sql` file is needed to initialize the `tubesync`
150-
database before it can be written to. This file should contain:
151-
152-
```
153-
CREATE DATABASE tubesync;
154-
```
155-
156-
157-
Then it must be mapped to `/docker-entrypoint-initdb.d/init.sql` for it
158-
to be executed on first startup of the container. See the `tubesync-db`
159-
volume mapping above for how to do this.

0 commit comments

Comments
 (0)