forked from tech-kev/SharedMoments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
61 lines (52 loc) · 2.14 KB
/
docker-compose.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
version: '3.9'
services:
flask:
image: techkev/sharedmoments:latest
container_name: sharedmoments
ports:
- '5000:5000'
restart: always
volumes:
- '<path-to-sharedmoments-folder>/upload/feed_items:/app/upload/feed_items/'
- '<path-to-sharedmoments-folder>/upload/stock_items:/app/upload/stock_items/'
- '<path-to-sharedmoments-folder>/data_transfer:/app/data_transfer/'
- '<path-to-sharedmoments-folder>/keys:/app/keys/'
- '<path-to-sharedmoments-folder>/logs:/app/logs/'
- '/etc/localtime:/etc/localtime:ro'
environment:
MYSQL_HOST: db
MYSQL_PORT: 3306
MYSQL_DATABASE: sharedmoments
MYSQL_USER: input
MYSQL_PASSWORD: supersecretpassword
LOCALE: 'en_US'
# --- Optional --- #
#DEBUG_MODE: 'False' # Set this to 'True' for enable debug-logging
#BW_TIME: "6, 0, 0" # Time when background worker should start. See wiki for more details
# WebPush Config
#DOMAIN_URL: "https://www.example.com" # Click action for webpush notification
# Telegram Bot Config, see https://clickalgo.com/how-to-create-a-telegram-messenger-bot for more informations
#TG_BOT_TOKEN: "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"
#TG_CHAT_IDS: '{"chat_ids": ["123456789"]}'
# E-Mail Config
#MAIL_SENDER_MAIL: "mail@example.com"
#MAIL_SMTP_SERVER: "smtp.gmail.com"
#MAIL_SMTP_PORT: 587
#MAIL_USERNAME: "mail@example.com"
#MAIL_PASSWORD: "your_password"
#MAIL_RECEIVER_MAILS: '{"receiver_mails": ["mail1@example.com", "mail2@example2.com"]}' # For reciving mail on special days. You can add emails separated by commas.
#MAIL_ADMIN: '{"admin_mails": ["urgent@example.com"]}' # For warning mails. You can add emails separated by commas.
depends_on:
- db
db:
image: mysql:latest
container_name: sharedmoments-db
restart: always
environment:
MYSQL_ROOT_PASSWORD: supersecretpassword
MYSQL_DATABASE: sharedmoments
MYSQL_USER: input
MYSQL_PASSWORD: supersecretpassword
volumes:
- '<path-to-sharedmoments-folder>/db:/var/lib/mysql'
- '/etc/localtime:/etc/localtime:ro'