-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (39 loc) · 1.14 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
version: "3.9"
services:
db:
image: postgres
restart: always
environment:
POSTGRES_DB: twitifynd
POSTGRES_PASSWORD: twitter
ports:
- 5432:5432
mail:
image: bytemark/smtp
restart: always
ports:
- 25:25
twitifynd:
build: .
environment:
POSTGRES_DB: twitifynd
POSTGRES_USER: postgres
PGPASSWORD: twitter
SPOTIFY_ID: ${SPOTIFY_ID}
SPOTIFY_SECRET: ${SPOTIFY_SECRET}
TWITTER_BEARER: ${TWITTER_BEARER}
RECEIVER_EMAIL: ${RECEIVER_EMAIL}
ALERT_LEVEL: 1
SKIP_ARTIST_RESULT: 1 # whether to use artist_result (0) or missing_artists (1)
# ALERT_LEVEL: 1-minimal, warnings only; 2-startup and other events; 3-verbose
DB_PROCESS: 0 # if 0, run normally, if 1, force an export, if 2, force a load
USE_SECOND_TIER: 0 # if 0, use artist_result.csv, if 1 use missing_twitter_with_handles.csv for parsing
volumes:
- script_logs:/data/script_logs
- script_data:/data/script_data
- script_counters:/data/script_counters
# TODO: specify restart on crash
volumes:
script_logs: {}
script_data: {}
script_counters: {}