Comment pgadmin support to enable older version of docker-compose to run (#91)
This commit is contained in:
parent
1ec19bdf38
commit
bba6f8b9a5
|
@ -142,45 +142,47 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
|
|
||||||
pgadmin:
|
## Remove comment if you need pgadmin support in your container.
|
||||||
image: dpage/pgadmin4:latest
|
## Commented for backward version compatibility of docker-compose.
|
||||||
environment:
|
# pgadmin:
|
||||||
- PGADMIN_DEFAULT_EMAIL=waku@waku.com
|
# image: dpage/pgadmin4:latest
|
||||||
- PGADMIN_DEFAULT_PASSWORD=wakuwaku
|
# environment:
|
||||||
- PGADMIN_CONFIG_SERVER_MODE=False
|
# - PGADMIN_DEFAULT_EMAIL=waku@waku.com
|
||||||
- PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED=False
|
# - PGADMIN_DEFAULT_PASSWORD=wakuwaku
|
||||||
- PGADMIN_LISTEN_PORT=80
|
# - PGADMIN_CONFIG_SERVER_MODE=False
|
||||||
ports:
|
# - PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED=False
|
||||||
- 15432:80
|
# - PGADMIN_LISTEN_PORT=80
|
||||||
user: root
|
# ports:
|
||||||
entrypoint: /bin/sh -c "chmod 600 /pgpass; /entrypoint.sh;"
|
# - 15432:80
|
||||||
volumes:
|
# user: root
|
||||||
- pgadmin:/var/lib/pgadmin
|
# entrypoint: /bin/sh -c "chmod 600 /pgpass; /entrypoint.sh;"
|
||||||
configs:
|
# volumes:
|
||||||
- source: servers.json
|
# - pgadmin:/var/lib/pgadmin
|
||||||
target: /pgadmin4/servers.json
|
# configs:
|
||||||
- source: pgpass
|
# - source: servers.json
|
||||||
target: /pgpass
|
# target: /pgadmin4/servers.json
|
||||||
depends_on:
|
# - source: pgpass
|
||||||
- postgres
|
# target: /pgpass
|
||||||
profiles:
|
# depends_on:
|
||||||
- dbadmin
|
# - postgres
|
||||||
|
# profiles:
|
||||||
|
# - dbadmin
|
||||||
|
|
||||||
volumes:
|
# volumes:
|
||||||
pgadmin:
|
# pgadmin:
|
||||||
|
|
||||||
configs:
|
# configs:
|
||||||
pgpass:
|
# pgpass:
|
||||||
content: postgres:5432:*:${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-test123}
|
# content: postgres:5432:*:${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-test123}
|
||||||
servers.json:
|
# servers.json:
|
||||||
content: |
|
# content: |
|
||||||
{"Servers": {"1": {
|
# {"Servers": {"1": {
|
||||||
"Group": "Servers",
|
# "Group": "Servers",
|
||||||
"Name": "WakuStoreDB",
|
# "Name": "WakuStoreDB",
|
||||||
"Host": "postgres",
|
# "Host": "postgres",
|
||||||
"Port": 5432,
|
# "Port": 5432,
|
||||||
"MaintenanceDB": "postgres",
|
# "MaintenanceDB": "postgres",
|
||||||
"Username": "postgres",
|
# "Username": "postgres",
|
||||||
"PassFile": "/pgpass",
|
# "PassFile": "/pgpass",
|
||||||
"SSLMode": "disable"
|
# "SSLMode": "disable"
|
||||||
}}}
|
# }}}
|
Loading…
Reference in New Issue