-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.example.yaml
157 lines (142 loc) · 4.52 KB
/
docker-compose.example.yaml
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
version: '3.7'
services:
# enable if leveraging a containerized database
# db:
# container_name: db
# image: mariadb
# hostname: db
# command: --default-authentication-plugin=mysql_native_password
# volumes:
# - ./database/mysql/data/:/var/lib/mysql
# restart: always
# ports:
# - 3306:3306
# environment:
# MYSQL_USER: "root"
# MYSQL_ROOT_PASSWORD: "password"
# MYSQL_DATABASE: "genesis"
# healthcheck:
# test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
# timeout: 20s
# retries: 10
bot:
container_name: genesis:bot
image: genesis/bot:latest
restart: always
build: bot.Dockerfile
# disable below if using containerized database
network_mode: host
# enable below if leveraging a containerized database, like mariadb above
# depends_on:
# - db
environment:
# docker-compose-wait config
# WAIT_HOSTS: db:3306
# disable below if using containerized database
WAIT_HOSTS: localhost:3306
WAIT_BEFORE_HOSTS: 10
WAIT_HOSTS_TIMEOUT: 60
# Database config
# MYSQL_HOST: db
MYSQL_HOST: localhost
MYSQL_PORT: 3306
MYSQL_USER: root
MYSQL_PASSWORD: password
MYSQL_DB: genesis
# Discord config
TOKEN: 'discord bot token'
OWNER: '76685590585671680'
HELP_URL: https://genesis.warframestat.us
# INVITE_URL: https://bot.discord.io/genesis
# CLIENT_ID: '76685590585671680'
# Logging
RAVEN_URL: 'raven logging url'
LOG_LEVEL: ERROR
# CONTROL_GUILD_ID: 'guild id!'
# CONTROL_WH_ID: 'webhook token'
# CONTROL_WH_TOKEN: 'webhook id'
# BUG_WEBHOOK_ID: 'webhook id for bug channel goes here'
# BUG_WEBHOOK_TOKEN: 'webhook token for bug channel goes here'
# Feature flags, node config
NODE_ENV: development
SCOPE: BOT
GAMES: UTIL,WARFRAME,ROOMS,CUST_CMDS,BOT_MGMT,CMD_MGMT,FUN
# Sharding!!!
SHARDS: 1
LOCAL_SHARDS: 1
SHARD_OFFSET: 0
CLUSTER_ID: 0
# CDN & Other configurables
CDN_BASE_PATH: https://cdn.warframestat.us
API_BASE_PATH: https://api.warframestat.us
WORLDSTATE_TIMEOUT: 60000
# Embed configurables
# LFG_EXPIRED_COLOR: 0xff0000
# LFG_ACTIVE_COLOR: 0x00ff00
# EMBED_URL: https://warframestat.us
# EMBED_ICON_URL: https://warframestat.us/wfcd_logo_color.png
# BASE_PRES_MSG: @Bot help
# BASE_PRES_ACT: WATCHING
notifier:
container_name: genesis:notifier
image: genesis/notifier:latest
restart: always
build: notifier.Dockerfile
# disable below if using containerized database
network_mode: host
# enable below if leveraging a containerized database, like mariadb above
# depends_on:
# - db
environment:
# docker-compose-wait config
# WAIT_HOSTS: db:3306
# disable below if using containerized database
WAIT_HOSTS: localhost:3306
WAIT_BEFORE_HOSTS: 10
WAIT_HOSTS_TIMEOUT: 60
# Database config
# MYSQL_HOST: db
MYSQL_HOST: localhost
MYSQL_PORT: 3306
MYSQL_USER: root
MYSQL_PASSWORD: password
MYSQL_DB: genesis
# Discord config
TOKEN: 'discord bot token'
OWNER: '76685590585671680'
HELP_URL: https://genesis.warframestat.us
# INVITE_URL: https://bot.discord.io/genesis
# CLIENT_ID: '76685590585671680'
# Logging
RAVEN_URL: 'raven logging url'
LOG_LEVEL: ERROR
# CONTROL_GUILD_ID: 'guild id!'
# CONTROL_WH_ID: 'webhook token'
# CONTROL_WH_TOKEN: 'webhook id'
# BUG_WH_ID: 'webhook id for bug channel goes here'
# BUG_WH_TOKEN: 'webhook token for bug channel goes here'
# Feature flags, node config
NODE_ENV: development
SCOPE: WORKER
GAMES: UTIL,WARFRAME,CUST_CMDS,RSS,TWITCH
# Sharding!!!
SHARDS: 1
LOCAL_SHARDS: 1
SHARD_OFFSET: 0
CLUSTER_ID: 0
# CDN & Other configurables
CDN_BASE_PATH: https://cdn.warframestat.us
API_BASE_PATH: https://api.warframestat.us
WORLDSTATE_TIMEOUT: 60000
DEF_USER: Genesis
PLATFORMS: pc
# Twitch
TWICH_CLIENT_ID: # client Id
TWITCH_CLIENT_SECRET: # client secret
# Embed configurables
# LFG_EXPIRED_COLOR: 0xff0000
# LFG_ACTIVE_COLOR: 0x00ff00
# EMBED_URL: https://warframestat.us
# EMBED_ICON_URL: https://warframestat.us/wfcd_logo_color.png
# BASE_PRES_MSG: @Bot help
# BASE_PRES_ACT: WATCHING