mirror of
https://github.com/a-sync/game-server-watcher.git
synced 2026-08-02 02:18:51 -04:00
docker-compose file
This commit is contained in:
3
.github/workflows/configure.yml
vendored
3
.github/workflows/configure.yml
vendored
@@ -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
|
||||
|
||||
1
.github/workflows/create.yml
vendored
1
.github/workflows/create.yml
vendored
@@ -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
19
docker-compose.yml
Normal 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: {}
|
||||
Reference in New Issue
Block a user