Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2.1'
- services:
- db:
- restart: always
- image: nikitph/portcastdbimage:latest
- ports:
- - "5432:5432"
- environment:
- - DEBUG = false
- healthcheck:
- test: ["CMD-SHELL", "pg_isready -U postgres"]
- interval: 5s
- timeout: 5s
- retries: 5
- scraper:
- build: .
- restart: always
- links:
- - db
- environment:
- - DB_HOST = db
- - BAR = FOO
- depends_on:
- db:
- condition: service_healthy
- command: [ "python3", "./cycloneprocess.py" ]
- self.connection = psycopg2.connect(host=os.environ["DB_HOST"], user=username, password=password, dbname=database)
- self.connection = psycopg2.connect(host='db', user=username, password=password, dbname=database)
Add Comment
Please, Sign In to add comment