Skip to content

Latest commit

 

History

History
34 lines (31 loc) · 1.16 KB

README.md

File metadata and controls

34 lines (31 loc) · 1.16 KB

Your Overtime - API

Go Report CardGoPublish Docker image

Swagger documentation can be found on https://your-overtime.de/api/v2/swagger/index.html.

version: "3.3"
services:
  api:
    image: ghcr.io/your-overtime/api:2
    environment:
      - HOST=0.0.0.0:8080
      - DB_USER=overtime
      - DB_PASSWORD=secret
      - DB_HOST=db:3306
      - DB_NAME=overtime
      - DEBUG=false
      - ADMIN_TOKEN=secret
      - TZ=Europe/Berlin
    restart: unless-stopped
    port: 8080:8080
  db:
    image: mariadb
    restart: unless-stopped
    volumes:
      - ./db:/var/lib/mysql
    environment:
      - MARIADB_INITDB_SKIP_TZINFO=true
      - TZ=Europe/Berlin
      - MYSQL_RANDOM_ROOT_PASSWORD=true
      - MYSQL_DATABASE=overtime
      - MYSQL_PASSWORD=secret