Skip to content

Commit

Permalink
updated docker environment
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jul 5, 2024
1 parent a80df46 commit bd488f4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crontab
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
0 0 * * * cd /home/user/python/auction_site_2022/ && /home/user/python/auction_site_2022/bin/python /home/user/python/auction_site_2022/fishauctions/manage.py set_user_location >> /var/log/cron.log 2>&1

# check for duplicate page views
*/15 * * * * cd /home/user/python/auction_site_2022/ && /home/user/python/auction_site_2022/bin/python /home/user/python/auction_site_2022/fishauctions/manage.py remove_duplicate_views >> /var/log/cron.log 2>&1
*/15 * * * * cd /home/user/python/auction_site_2022/ && /home/user/python/auction_site_2022/bin/python /home/user/python/auction_site_2022/fishauctions/manage.py remove_duplicate_views >> /var/log/cron.log 2>&1
7 changes: 3 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.8'
#version: '3.8'

services:
web:
Expand All @@ -25,9 +25,8 @@ services:
MYSQL_USER: ${DATABASE_USER-mysqluser}
MYSQL_PASSWORD: ${DATABASE_PASSWORD-unsecure}
MYSQL_ROOT_PASSWORD: ${DATABASE_ROOT_PASSWORD-unsecure}
ports:
- 3306:3306
#- ${DATABASE_PORT}:3306
expose:
- ${DATABASE_PORT-3306}
volumes:
- mariadb_data:/var/lib/mysql

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ easy-thumbnails==2.8.5
# via -r requirements.in
gunicorn==22.0.0
# via -r requirements.in
uvicorn==0.30.1
heif-image-plugin==0.6.1
# via -r requirements.in
hyperlink==21.0.0
Expand Down
5 changes: 5 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
cd /opt/fishauctions
git pull origin main
docker compose pull
docker compose up -d

0 comments on commit bd488f4

Please sign in to comment.