octopush/crates/gitea_raw_client/scripts/generate_client.docker-compose.yml
Kasper Juul Hermansen 991861db99
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Rewrite rust (#38)
Co-authored-by: kjuulh <contact@kjuulh.io>
Reviewed-on: #38
2022-11-27 11:21:35 +00:00

26 lines
620 B
YAML

version: "3"
services:
gitea:
image: "gitea/gitea:1.17.3"
environment:
ROOT_URL: "http://gitea:3000"
INSTALL_LOCK: "true"
healthcheck:
test: curl --fail http://localhost:3000 || exit 1
interval: 5s
retries: 5
start_period: 5s
timeout: 10s
generator:
build:
dockerfile: scripts/generate_client.Dockerfile
context: ../
command: "generate -i http://gitea:3000/swagger.v1.json -g rust -o /mnt/generated/ -p packageName=gitea_raw_client"
volumes:
- "../:/mnt/generated/"
depends_on:
gitea:
condition: service_healthy