aboutsummaryrefslogtreecommitdiff
path: root/docker-compose.yml
blob: 1c176d013d85fd61e0792ec74fbb4a7a1fba0c5a (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
33
34
version: '3'
services:

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

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