-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
46 lines (43 loc) · 1.11 KB
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
version: "3.9"
services:
db:
image: mysql:8.0
container_name: future-task-reminders-db
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: task_reminders
MYSQL_USER: app_user
MYSQL_PASSWORD: app_password
ports:
- "3306:3306"
volumes:
- db_data:/var/lib/mysql
app:
build: .
container_name: future-task-reminders-app
restart: unless-stopped
depends_on:
- db
ports:
- "3000:3000"
environment:
NODE_ENV: production
PORT: 3000
DB_HOST: db
DB_PORT: 3306
DB_USER: app_user
DB_PASSWORD: app_password
DB_NAME: task_reminders
# Configure these with your real SMTP details or override via .env / environment
SMTP_HOST: smtp.your-email-provider.com
SMTP_PORT: 587
SMTP_SECURE: "false"
SMTP_USER: your_smtp_username
SMTP_PASS: your_smtp_password
SMTP_FROM: "Task Reminders <no-reply@example.com>"
REMINDER_CRON: "*/1 * * * *"
DAILY_CRON: "0 9 * * *"
SESSION_SECRET: "change_me_for_production"
volumes:
db_data: