http-observatory/docker-compose.yml

83 строки
1.8 KiB
YAML
Исходник Обычный вид История

2016-03-16 22:07:21 +03:00
version: '2'
services:
frontend:
build: ./httpobs
command: uwsgi --http :57001 --wsgi-file /app/httpobs/website/main.py --callable app --master
depends_on:
- backend
- postgres
env_file:
- httpobs/conf/.env
environment:
- HTTPOBS_BACKEND_API_URL=http://backend:57002/api/v1
2016-03-17 00:25:30 +03:00
- HTTPOBS_DATABASE_PASS=httpobsapipassword
2016-03-16 22:07:21 +03:00
- HTTPOBS_ENVIRONMENT=frontend
links:
- backend
- postgres
ports:
2016-03-17 00:25:30 +03:00
- "57001:57001"
2016-03-16 22:07:21 +03:00
restart: always
backend:
build: ./httpobs
command: uwsgi --http :57002 --wsgi-file /app/httpobs/website/main.py --callable app --master
depends_on:
- postgres
- redis
env_file:
- httpobs/conf/.env
environment:
2016-03-17 00:25:30 +03:00
- HTTPOBS_DATABASE_PASS=httpobsscannerpassword
2016-03-16 22:07:21 +03:00
- HTTPOBS_ENVIRONMENT=backend
expose:
- "57002"
links:
- postgres
- redis
restart: always
# celery task for scanner
scanner:
build: ./httpobs
command: /app/httpobs/scripts/httpobs-scan-worker
depends_on:
- postgres
- redis
env_file:
- httpobs/conf/.env
environment:
2016-03-17 00:25:30 +03:00
- HTTPOBS_DATABASE_PASS=httpobsscannerpassword
- HTTPOBS_DOCKER_CONCURRENCY=8
2016-03-16 22:07:21 +03:00
- HTTPOBS_ENVIRONMENT=backend
links:
- postgres
- redis
# celery beat for database cleanup
janitor:
build: ./httpobs
command: /app/httpobs/scripts/httpobs-database-beat
depends_on:
- postgres
- redis
env_file:
- httpobs/conf/.env
environment:
2016-03-17 00:25:30 +03:00
- HTTPOBS_DATABASE_PASS=httpobsscannerpassword
2016-03-16 22:07:21 +03:00
- HTTPOBS_ENVIRONMENT=backend
links:
- postgres
- redis
postgres:
image: postgres
build: ./httpobs/database
environment:
- POSTGRES_USER=httpobs
- POSTGRES_PASSWORD=totallyfakepassword
- POSTGRES_DB=http_observatory
redis:
image: redis