Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
alihardan committed Feb 10, 2024
1 parent 517c8a2 commit 4598b58
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,8 @@ VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

TELEGRAM_TOKEN="api-telegram-token"
OWNER_TG_ID=''
TELEGRAM_API=
TELEGRAM_HASH=
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
BACKUP_TOKEN=${{ secrets.BACKUP_TOKEN }}
# build-args: |
# BACKUP_TOKEN=${{ secrets.BACKUP_TOKEN }}
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ RUN ln -s /opgactions/opg-backups/gamePhotos /app/storage/app/public/gamePhotos
RUN ln -s /opgactions/opg-backups/item-photos /app/storage/app/public/item-photos
RUN chown -R application:application /opgactions

RUN wget https://github.com/vrana/adminer/releases/download/v4.8.1/adminer-4.8.1-en.php -O /app/public/adminer-baadafdhhd.php
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
1. copy .env file kenare docker-compose.yml, set mysql host to "db", and set user pass, add APP_KEY, also:
SANCTUM_STATEFUL_DOMAINS=dash.oldpersiangames.org
SESSION_DOMAIN=.oldpersiangames.org
1. docker compose up --build -d && docker compose exec app bash -c "php artisan config:cache && php artisan route:cache && php artisan optimize"
also TELEGRAM_TOKEN=bot_token and OWNER_TG_ID=yourid
also TELEGRAM_API and TELEGRAM_HASH for your python bot
1. docker compose pull && docker compose up --build -d && docker compose exec app bash -c "php artisan config:cache && php artisan route:cache && php artisan optimize"
1. docker compose exec app bash
1. git clone https://${BACKUP_TOKEN}@github.com/oldpersiangames/opg-backups /opgactions/opg-backups && chown -R application:application /opgactions
1. mysql -h db -u opg -p123456 opg < /opgactions/opg-backups/opgmanager.sql
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ services:
- dbdata:/var/lib/mysql
networks:
- app-network
opgbot:
image: ghcr.io/oldpersiangames/opgbot:main
container_name: opgbot
restart: unless-stopped
env_file:
- path: ./.env
required: true
networks:
- app-network

networks:
app-network:
driver: bridge
Expand Down

0 comments on commit 4598b58

Please sign in to comment.