-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpostgres-pgadmin.yml
49 lines (44 loc) · 1.3 KB
/
postgres-pgadmin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#docker-compose -f postgres-pgadmin.yml up -d
version: "3.7"
services:
postgres:
container_name: mypostgres
image: postgres:9.6-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: changeme
POSTGRES_HOST_AUTH_METHOD: trust
#PGDATA: ~/Documents/programming/mypostgres
volumes:
- $HOME/uzrnem/database/postgres_db:/data/postgres
ports:
- 5432:5432
networks:
- postgres
pgadmin:
container_name: mypgadmin
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: admin
volumes:
- $HOME/uzrnem/database/pgadmin:/root/.pgadmin
ports:
- 8001:80
networks:
- postgres
# dbui:
# image: dbeaver/cloudbeaver:22.0.5
# container_name: dbeavercss
# ports:
# - 8004:8978
# networks:
# - cassandra #cbadmin
networks:
postgres: # docker-compose-files_postgres
driver: bridge
# networks: -- To use above network services in other projects add this networks property
# docker-compose-files_postgres: -- {{directory_name}}_{{network_name}}
# external: true -- are you using external network?
# docker exec -it postgres psql --dbname=credentials --username=root --command="SHOW config_file"
# /var/lib/postgresql/data/postgresql.conf