27 lines
591 B
YAML
27 lines
591 B
YAML
services:
|
|
gitea-custom-api:
|
|
build: .
|
|
container_name: gitea-custom-api
|
|
restart: unless-stopped
|
|
environment:
|
|
DB_HOST: mysql
|
|
DB_USER: root
|
|
DB_PASS: ${MYSQL_ROOT_PASSWORD}
|
|
DB_NAME: giteadb
|
|
API_KEY_FILE: /data/api-key
|
|
WEBHOOK_SECRET: ${GITEA_WEBHOOK_SECRET}
|
|
PORT: "8080"
|
|
volumes:
|
|
- ./api-key:/data/api-key
|
|
networks:
|
|
- git-network
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://localhost:8080/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
networks:
|
|
git-network:
|
|
external: true
|