2018-03-09 00:55:03 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
image: postgres
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: totallyHacked1337
|
|
|
|
POSTGRES_USER: imagehost
|
|
|
|
POSTGRES_DB: imagehost_db
|
|
|
|
volumes:
|
|
|
|
- ./backup:/backup
|
|
|
|
ports:
|
|
|
|
- '5432:5432'
|
|
|
|
|
|
|
|
imagehost_portal:
|
|
|
|
build: .
|
|
|
|
environment:
|
|
|
|
PORTAL_DEBUG: 'true'
|
2018-03-09 03:25:54 +00:00
|
|
|
POSTGRES_PASSWORD: totallyHacked1337
|
|
|
|
POSTGRES_USER: imagehost
|
|
|
|
POSTGRES_DB: imagehost_db
|
|
|
|
POSTGRES_HOST: postgres
|
2018-03-09 00:55:03 +00:00
|
|
|
volumes:
|
|
|
|
- .:/portal
|
|
|
|
ports:
|
|
|
|
- '8000:8000'
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
|
|
|
|
working_dir: /portal
|
|
|
|
|
|
|
|
command: |
|
|
|
|
/usr/local/bin/wait-for-it.sh -t 60 postgres:5432 --
|
|
|
|
sh /portal/run.sh
|