forked from atomheartother/QTweet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (48 loc) · 1.42 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
version: "3.7"
services:
qtweet:
build:
context: .
args:
PREFIX: "${PREFIX}"
BOT_NAME: "${BOT_NAME}"
image: navenn_t/qtweet
restart: on-failure
environment:
TZ: ${TIMEZONE}
PGHOST: postgres
PGDATABASE: ${DB_NAME}
PGPASSWORD: ${DB_PASSWORD}
PGUSER: ${DB_USER}
DISCORD_TOKEN: ${DISCORD_TOKEN}
TWITTER_API_KEY: ${TWITTER_API_KEY}
TWITTER_API_SECRET_KEY: ${TWITTER_API_SECRET_KEY}
TWITTER_ACCESS_TOKEN: ${TWITTER_ACCESS_TOKEN}
TWITTER_ACCESS_TOKEN_SECRET: ${TWITTER_ACCESS_TOKEN_SECRET}
DBL_TOKEN: ${DBL_TOKEN}
PREFIX: ${PREFIX}
DEFAULT_LANG: ${DEFAULT_LANG}
BOT_NAME: ${BOT_NAME}
SHARD_SPAWN_DELAY: ${SHARD_SPAWN_DELAY}
SHARD_SPAWN_TIMEOUT: ${SHARD_SPAWN_TIMEOUT}
VERBOSE: ${VERBOSE}
TWITTER_MAX_RECONNECT_DELAY: ${TWITTER_MAX_RECONNECT_DELAY}
TWEETS_TIMEOUT: ${TWEETS_TIMEOUT}
USERS_CHECK_TIMEOUT: ${USERS_CHECK_TIMEOUT}
USERS_BATCH_SIZE: ${USERS_BATCH_SIZE}
DISABLE_SANITY_CHECK: ${DISABLE_SANITY_CHECK}
DISABLE_STREAMS: ${DISABLE_STREAMS}
depends_on:
- postgres
postgres:
image: postgres:13-alpine
restart: always
volumes:
- ./db-init:/docker-entrypoint-initdb.d
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
pgdata: