blob: eef4bcc5bfa20a4370c096d2e80f645ff72dc639 (
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:
- '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
ports:
- "5000:5000"
expose:
- '5000'
depends_on:
- db
command: "./wait-for-postgres.sh db"
|