File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ Clone the repository, mount its directory as a volume into
27
27
volumes:
28
28
- ../docker-postgresql-multiple-databases:/docker-entrypoint-initdb.d
29
29
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:
33
33
34
34
### By building a custom image
35
35
@@ -45,13 +45,13 @@ to the container:
45
45
myapp-postgresql:
46
46
image: eu.gcr.io/your-project/postgres-multi-db
47
47
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:
51
51
52
52
### Non-standard database names
53
53
54
54
If you need to use non-standard database names (hyphens, uppercase letters etc), quote them in ` POSTGRES_MULTIPLE_DATABASES ` :
55
55
56
56
environment:
57
- - POSTGRES_MULTIPLE_DATABASES= "test-db-1","test-db-2"
57
+ - POSTGRES_MULTIPLE_DATABASES: "test-db-1","test-db-2"
You can’t perform that action at this time.
0 commit comments