Search
 
SCRIPT & CODE EXAMPLE
 

CSS

docker postgresql

version: "3.9"
   
services:
  db:
    image: postgres
    volumes:
      - ./data/db:/var/lib/postgresql/data
    environment:
      - POSTGRES_DB=postgres
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=postgres
  web:
    build: .
    command: python manage.py runserver 0.0.0.0:8000
    volumes:
      - .:/code
    ports:
      - "8000:8000"
    environment:
      - POSTGRES_NAME=postgres
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=postgres
    depends_on:
      - db
Comment

postgree docker

docker run --name postgresql-container -p 5432:5432 -e POSTGRES_PASSWORD=somePassword -d postgres
Comment

dockerhub postgres

docker run --name pg-database -port 5432:5432 -e POSTGRES_DB="postgres" -e POSTGRES_USER="admin" -e POSTGRES_PASSWORD="123" postgres:12-alpine 
Comment

run psql postgres docker

docker exec -it <database_name> psql -U <username> -W <username>
Comment

PREVIOUS NEXT
Code Example
Css :: Hide scroll bar, but while still being able to scroll 
Css :: autocomplete background color css 
Css :: text overflow 
Css :: css cursor loading 
Css :: styles only for IE 
Css :: adding border to text css 
Css :: css full grid span 
Css :: text properties css 
Css :: how to set the scroll in bootstrap4 table body 
Css :: transform scale 
Css :: css how to make something italized 
Css :: fixed header and footer css 
Css :: Scroll background still 
Css :: scale up and scale down animation in css 
Css :: space between flexbox 
Css :: window popup hide address bar 
Css :: how to highlight input on focus with box shadow 
Css :: css transform translate rotate 
Css :: reset specific css 
Css :: style highlight css 
Css :: css ie11 only 
Css :: paragraph next to image html 
Css :: how to make hr class bootstrap full width 
Css :: radial gradient css 
Css :: double border color css 
Css :: css conver innertext to html using css 
Css :: css flex wrap space between rows 
Css :: input type password css 
Css :: !important css 
Css :: padding in one line 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =