forked from peermetrics/peermetrics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.api.yaml
More file actions
87 lines (66 loc) · 1.8 KB
/
docker-compose.api.yaml
File metadata and controls
87 lines (66 loc) · 1.8 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
services:
nginx:
build: ./nginx
ports:
- 8081:8081
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/conf.d:/etc/nginx/conf.d:ro
- api_static:/app/api
depends_on:
- api
restart: "on-failure"
api:
image: peermetrics/api:latest
command: "gunicorn api.wsgi:application --bind 0.0.0.0:8081 --log-level debug --reload"
volumes:
- api_static:/app/static
expose:
- 8081
environment:
DEBUG: "False"
DJANGO_SETTINGS_MODULE: "api.settings"
SECRET_KEY: "secret"
# Used to generate the JWT token
# CHANGE THIS IN PRODUCTION
INIT_TOKEN_SECRET: "supersecret"
# used to encrypt the session cookie
# CHANGE THIS IN PRODUCTION
SESSION_TOKEN_SECRET: "secret"
WEB_DOMAIN: "localhost:8080"
#
# Redis config
#
# Location of redis server
REDIS_HOST: "redis://127.0.0.1:6379"
#
# DB config
#
DATABASE_HOST: "postgres"
DATABASE_PORT: "5432"
DATABASE_USER: "peeruser"
DATABASE_PASSWORD: "peeruser"
DATABASE_NAME: "peerdb"
CONN_MAX_AGE: "14400"
# if we should delete all the unneeded stats events after the conference ends
POST_CONFERENCE_CLEANUP: "True"
#
# App engine
#
# If the app is deployed on app engine
#
# Google cloud logging
#
# Enable logging in Google cloud logging
# USE_GOOGLE_CLOUD_LOGGING: "True"
#
# Google cloud tasks
#
# If you want to use google task queue
# USE_GOOGLE_TASK_QUEUE: "True"
# GOOGLE_TASK_QUEUE_NAME: "queue-1"
# APP_ENGINE_LOCATION: "us-east1"
# TASK_QUEUE_DOMAIN: 'https://api.example.com/'
restart: "on-failure"
volumes:
api_static: