Difference between revisions of "Docker-compose.yml PostgreSQL"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
== Example == | == Example == | ||
− | + | ||
− | # Use postgres/example user/password credentials | + | # Use postgres/example user/password credentials |
− | version: '3.1' | + | version: '3.1' |
− | + | ||
− | services: | + | services: |
− | + | ||
db: | db: | ||
image: postgres | image: postgres | ||
Line 16: | Line 16: | ||
POSTGRES_USER: postgres | POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: example | POSTGRES_PASSWORD: example | ||
− | + | ||
− | adminer: | + | [[adminer]]: |
image: adminer | image: adminer | ||
restart: always | restart: always | ||
ports: | ports: | ||
- 8080:8080 | - 8080:8080 | ||
− | + | ||
== Activities == | == Activities == |
Revision as of 17:21, 15 July 2024
https://hub.docker.com/_/postgres?tab=description
Example
# Use postgres/example user/password credentials version: '3.1' services: db: image: postgres restart: always environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: example adminer: image: adminer restart: always ports: - 8080:8080
Activities
- Add a docker-compose for PostgreSQL with a volume or bind mounts
See also
- Docker Volumes:
docker volume ls
,docker volume create
,docker volume inspect
,docker volumes prune
,docker volume create
,docker volume rm
,docker system df
,mounts
,--volumes-from
docker-compose
,docker-compose.yml
: [services
|volumes
|networks
|up
|down
|restart
|logs
|create
|changelog
|version
|secrets
|config
|-v
|-h
|exec], docker-compose pull
,Environment:
, Docker-compose.yml examples,.env
, release notes, expose:, docker-compose --env-file,services.deploy.resources
- PostgreSQL:
pg_dump, pg_restore
,pgAdmin, pg_config, psql, pg_ctl, pg_isready, initdb
, Role, Schema, DBeaver, Navicat, DataGrip, OmniDB,Adminer
, docker-compose.xml PostgreSQL, PostgreSQL version, PostgreSQL logs,postgresql.conf
,pg_hba.conf, $HOME/.pg_service.conf
, Create database (PostgreSQL), Create user,createdb
,GRANT
,pg_stat
, PostgreSQL VACUUM, EXPLAIN,pg stat activity
, Autovacuum, ALTER DATABASE, PostgreSQL statistics collector, Shared buffers, EXPLAIN (PostgreSQL),EXPLAIN ANALYZE
, Bitmap scan,EXPLAIN VERBOSE
,EXPLAIN VERBOSE (PostgresSQL)
,WAL
,ALTER USER
,CREATE ROLE, CREATE USER
,\du
,show users
,\l
, The Statistics Collector, pganalyze,cron.schedule
, Master,pg_tables
, PostgreSQL replication,CREATE, SET
, TOAST, PgBouncer, Restore DB, Index, meta-commands, Table, foreign table, Schema, Sequence, Views, materialized view, Table Partitioning, monitoring, PostgreSQL System Administration Functions, PostgreSQL extension, privileges, logging, PGTune, PostgreSQL parameter tunning, PostgreSQL modules, pgbench, PostgreSQL users, catalogs
Advertising: