aboutsummaryrefslogtreecommitdiff
path: root/docker-compose.yml
blob: fd3bd0e0f3ecd115627290bde42107fcc3b86d10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: '3'
services:

  db:
    image: postgres:latest
    hostname: db
    restart: always
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=password
      - POSTGRES_DB=postgres
    ports:
      - '5532:5432'
    expose:
      - '5532'
    volumes:
      - ./docker/postgres/data:/var/lib/postgresql/data

  newspipe:
    build:
      context: .
      dockerfile: ./Dockerfile
    tty: true
    environment:
        - Newspipe_CONFIG=/newspipe/instance/config.py
    ports:
        - "5000:5000"
    expose:
      - '5000'
    depends_on:
      - db
    command: "./wait-for-postgres.sh db"
bgstack15