aboutsummaryrefslogtreecommitdiff
path: root/docker-compose.yml
blob: 3634afc2add8083f167bdf37d9c6624fe32db942 (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
35
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
    volumes:
      - .:/newspipe:rw
      - /newspipe/static/npm_components/
    environment:
        - Newspipe_CONFIG=/newspipe/instance/production.py
    ports:
        - "5000:5000"
    expose:
      - '5000'
    depends_on:
      - db
    command: "./wait-for-postgres.sh db"
bgstack15