Difference between revisions of "Docker-compose.yml PostgreSQL"

From wikieduonline
Jump to navigation Jump to search
Line 12: Line 12:
 
   
 
   
 
   db:
 
   db:
     image: postgres
+
     [[image:]] postgres
 
     restart: always
 
     restart: always
 
     environment:
 
     environment:
Line 23: Line 23:
 
     ports:
 
     ports:
 
       - 8080:8080
 
       - 8080:8080
 
  
 
== Activities ==
 
== Activities ==

Revision as of 17:26, 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

Related

See also

Advertising: