mirror of
https://github.com/BreizhHardware/Jellystat.git
synced 2026-01-18 16:27:20 +01:00
ci: update realibility of ci and docker-compose
This commit is contained in:
9
.github/workflows/docker-image.yml
vendored
9
.github/workflows/docker-image.yml
vendored
@@ -10,10 +10,12 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
@@ -27,13 +29,16 @@ jobs:
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@v3.0.0
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_TOKEN }}
|
||||
|
||||
- name: Build Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
|
||||
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- uses: actions/stale@v5
|
||||
- uses: actions/stale@v9
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
stale-issue-message: 'Stale issue message'
|
||||
|
||||
@@ -1,36 +1,43 @@
|
||||
version: "3"
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
jellystat-db:
|
||||
image: postgres
|
||||
image: postgres:15.2
|
||||
container_name: jellystat-db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: mypassword
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
|
||||
jellystat:
|
||||
image: jellystat
|
||||
image: cyfershepard/jellystat:latest
|
||||
container_name: jellystat
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: mypassword
|
||||
POSTGRES_IP: jellystat-db
|
||||
POSTGRES_PORT: 5432
|
||||
JWT_SECRET: "my-secret-jwt-key"
|
||||
TZ: Africa/Johannesburg
|
||||
TZ: mytimezone # timezone (ex: Europe/Paris)
|
||||
volumes:
|
||||
- jellystat-backup-data:/app/backend/backup-data
|
||||
ports:
|
||||
- "3000:3000"
|
||||
depends_on:
|
||||
- jellystat-db
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
default:
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-file: "5" # number of files or file count
|
||||
max-size: "10m" # file size
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
jellystat-backup-data:
|
||||
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-file: "5" # number of files or file count
|
||||
max-size: "10m" # file size
|
||||
Reference in New Issue
Block a user