2016-03-16 22:07:21 +03:00
|
|
|
version: '2'
|
|
|
|
services:
|
2016-03-23 01:06:24 +03:00
|
|
|
website:
|
2023-10-06 17:28:06 +03:00
|
|
|
build: .
|
2024-01-03 16:49:13 +03:00
|
|
|
command: uwsgi --http :57001 --wsgi-file /app/httpobs/website/main.py --processes 1 --callable app --master
|
2016-03-16 22:07:21 +03:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
environment:
|
2016-03-23 01:06:24 +03:00
|
|
|
- HTTPOBS_DATABASE_HOST=postgres
|
2016-03-17 00:25:30 +03:00
|
|
|
- HTTPOBS_DATABASE_PASS=httpobsapipassword
|
2016-03-23 01:06:24 +03:00
|
|
|
- HTTPOBS_DATABASE_USER=httpobsapi
|
2016-03-16 22:07:21 +03:00
|
|
|
links:
|
|
|
|
- postgres
|
|
|
|
ports:
|
2016-03-17 00:25:30 +03:00
|
|
|
- "57001:57001"
|
2024-01-03 16:49:13 +03:00
|
|
|
restart: unless-stopped
|
2016-03-16 22:07:21 +03:00
|
|
|
|
2023-10-13 18:51:53 +03:00
|
|
|
postgres:
|
|
|
|
build: ./httpobs/database
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=httpobs
|
|
|
|
- POSTGRES_PASSWORD=totallyfakepassword
|
|
|
|
- POSTGRES_DB=http_observatory
|