View difference between Paste ID: b8xvF90c and y7wCvAxh
SHOW: | | - or go back to the newest paste.
1
version: '3.4'
2
3
services:
4
  postgres:
5
    image: postgres
6
    restart: always
7
    ports:
8
      - "5432:5432"
9
    environment:
10
      POSTGRES_PASSWORD: 1123QwER
11
      POSTGRES_USER: postgres
12
      POSTGRES_DB: python_db
13
      PGDATA: /var/lib/postgresql/data/pgdata
14
    volumes:
15
      - ./postgre:/var/lib/postgresql/data
16