-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 1.12 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
version: '3'
services:
app:
build: .
ports:
- "8080:8080"
volumes:
- ./data:/app/data
- ./charts:/app/charts
- ./meme_templates:/app/meme_templates
env_file:
- .env
restart: unless-stopped
command: python app.py web --port 8080
# Uncomment to use PostgreSQL instead of SQLite
# db:
# image: postgres:14
# volumes:
# - postgres_data:/var/lib/postgresql/data
# environment:
# - POSTGRES_PASSWORD=diamondhandz
# - POSTGRES_USER=diamondhandz
# - POSTGRES_DB=diamondhandz
# restart: unless-stopped
# Uncomment to add a scheduled task for daily portfolio updates
# cron:
# build: .
# volumes:
# - ./data:/app/data
# env_file:
# - .env
# restart: unless-stopped
# command: >
# sh -c "echo '0 0 * * * python /app/app.py portfolio --update-prices >> /var/log/cron.log 2>&1' > /etc/cron.d/portfolio-cron &&
# chmod 0644 /etc/cron.d/portfolio-cron &&
# crontab /etc/cron.d/portfolio-cron &&
# cron -f"
# Uncomment to use PostgreSQL
# volumes:
# postgres_data: