docker-compose file

This commit is contained in:
Smith
2023-02-24 19:27:30 +01:00
parent 284c72628e
commit b02f354460
3 changed files with 23 additions and 0 deletions

View File

@@ -33,12 +33,15 @@ jobs:
- name: 💼 Update `SECRET` on fly.io
if: inputs.secret != ''
run: flyctl secrets set SECRET=${{ inputs.secret }} --app ${{ github.repository_owner }}-gsw
- name: 💼 Update `DISCORD_BOT_TOKEN` on fly.io
if: inputs.discord_bot_token != ''
run: flyctl secrets set DISCORD_BOT_TOKEN=${{ inputs.discord_bot_token }} --app ${{ github.repository_owner }}-gsw
- name: 💼 Update `TELEGRAM_BOT_TOKEN` on fly.io
if: inputs.telegram_bot_token != ''
run: flyctl secrets set TELEGRAM_BOT_TOKEN=${{ inputs.telegram_bot_token }} --app ${{ github.repository_owner }}-gsw
- name: 💼 Update `STEAM_WEB_API_KEY` on fly.io
if: inputs.steam_web_api_key != ''
run: flyctl secrets set STEAM_WEB_API_KEY=${{ inputs.steam_web_api_key }} --app ${{ github.repository_owner }}-gsw

View File

@@ -14,5 +14,6 @@ jobs:
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: 🧱 Create fly.io app
run: flyctl apps create ${{ github.repository_owner }}-gsw
- name: 💽 Create fly.io volume
run: flyctl volumes create gsw_data --region ${{ secrets.FLY_REGION }} --size 1

19
docker-compose.yml Normal file
View File

@@ -0,0 +1,19 @@
version: "3"
services:
gsw:
build: ./
ports:
- 8080:8080
environment:
DBG: 0
REFRESH_TIME_MINUTES: 2
DATA_PATH: "/data/"
SECRET: "secret"
DISCORD_BOT_TOKEN: ""
TELEGRAM_BOT_TOKEN: ""
STEAM_WEB_API_KEY: ""
volumes:
- gsw_data:/data
volumes:
gsw_data: {}