forked from incidentbot/incidentbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (53 loc) · 1.58 KB
/
docker-compose.yml
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
version: '3.9'
services:
bot:
build:
context: .
dockerfile: Dockerfile
command: ['./wait-for-it.sh', 'db:5432', '--', 'python3', 'main.py']
depends_on:
- db
environment:
SLACK_APP_TOKEN: '${SLACK_APP_TOKEN}'
SLACK_BOT_TOKEN: '${SLACK_BOT_TOKEN}'
SLACK_USER_TOKEN: '${SLACK_USER_TOKEN}'
POSTGRES_HOST: db
POSTGRES_DB: incident_bot
POSTGRES_USER: incident_bot
POSTGRES_PASSWORD: somepassword
POSTGRES_PORT: 5432
PAGERDUTY_API_TOKEN: ''
PAGERDUTY_API_USERNAME: ''
STATUSPAGE_API_KEY: ''
STATUSPAGE_PAGE_ID: ''
STATUSPAGE_URL: ''
ATLASSIAN_API_URL: ''
ATLASSIAN_API_USERNAME: ''
ATLASSIAN_API_TOKEN: ''
DEFAULT_WEB_ADMIN_PASSWORD: 'foobar1234'
FLASK_APP_SECRET_KEY: 'supersecret'
JWT_SECRET_KEY: 'supersecret'
CONFIG_FILE_PATH: '/config/incident-bot/config.yaml'
GOOGLE_ACCOUNT_EMAIL: ${GOOGLE_ACCOUNT_EMAIL}
GOOGLE_SERVICE_ACCOUNT_SECRET: ${GOOGLE_SERVICE_ACCOUNT_SECRET}
ports:
- target: 3000
published: 3000
protocol: tcp
mode: host
links:
- db
volumes:
- ${GOOGLE_SERVICE_ACCOUNT_SECRET}:/config/google-creds.json
# Wherever the config file lives, root by default
- ./backend/config.yaml:/config/incident-bot/config.yaml
db:
image: postgres:13
command:
['postgres', '-c', 'log_statement=all', '-c', 'log_destination=stderr']
hostname: db
environment:
POSTGRES_PASSWORD: 'somepassword'
POSTGRES_USER: 'incident_bot'
ports:
- 5432:5432