Difference between revisions of "Docker-compose.yml PostgreSQL"
Jump to navigation
Jump to search
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{lc}} | ||
https://hub.docker.com/_/postgres?tab=description | https://hub.docker.com/_/postgres?tab=description | ||
− | == | + | == Example == |
+ | |||
# Use postgres/example user/password credentials | # Use postgres/example user/password credentials | ||
Line 10: | Line 12: | ||
db: | db: | ||
− | image: postgres | + | [[image]]: postgres |
− | + | restart: always | |
environment: | environment: | ||
+ | POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: example | POSTGRES_PASSWORD: example | ||
Line 21: | Line 24: | ||
- 8080:8080 | - 8080:8080 | ||
− | == | + | == Activities == |
− | + | * Add a docker-compose for PostgreSQL with a [[volume]] or [[Bind mounts (Docker)|bind mounts]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | == Related == | |
− | + | * <code>[[docker compose up]]</code> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </ | ||
== See also == | == See also == |
Latest revision as of 17:26, 15 July 2024
https://hub.docker.com/_/postgres?tab=description
Contents
Example[edit]
# 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[edit]
- Add a docker-compose for PostgreSQL with a volume or bind mounts
Related[edit]
See also[edit]
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: