Skip to content

Commit cbc4824

Browse files
authored
Correct docker compose syntax in README
1 parent ac7f26d commit cbc4824

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ Clone the repository, mount its directory as a volume into
2727
volumes:
2828
- ../docker-postgresql-multiple-databases:/docker-entrypoint-initdb.d
2929
environment:
30-
- POSTGRES_MULTIPLE_DATABASES=db1,db2
31-
- POSTGRES_USER=myapp
32-
- POSTGRES_PASSWORD=
30+
- POSTGRES_MULTIPLE_DATABASES: db1,db2
31+
- POSTGRES_USER: myapp
32+
- POSTGRES_PASSWORD:
3333

3434
### By building a custom image
3535

@@ -45,13 +45,13 @@ to the container:
4545
myapp-postgresql:
4646
image: eu.gcr.io/your-project/postgres-multi-db
4747
environment:
48-
- POSTGRES_MULTIPLE_DATABASES=db1,db2
49-
- POSTGRES_USER=myapp
50-
- POSTGRES_PASSWORD=
48+
- POSTGRES_MULTIPLE_DATABASES: db1,db2
49+
- POSTGRES_USER: myapp
50+
- POSTGRES_PASSWORD:
5151

5252
### Non-standard database names
5353

5454
If you need to use non-standard database names (hyphens, uppercase letters etc), quote them in `POSTGRES_MULTIPLE_DATABASES`:
5555

5656
environment:
57-
- POSTGRES_MULTIPLE_DATABASES="test-db-1","test-db-2"
57+
- POSTGRES_MULTIPLE_DATABASES: "test-db-1","test-db-2"

0 commit comments

Comments
 (0)