mirror of
https://github.com/sstent/go-garminconnect.git
synced 2025-12-05 23:52:03 +00:00
36 lines
622 B
YAML
36 lines
622 B
YAML
services:
|
|
go-garminconnect:
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/Dockerfile
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
- GIN_MODE=release
|
|
volumes:
|
|
- garmin-session:/app/session
|
|
networks:
|
|
- garmin-net
|
|
healthcheck:
|
|
test: curl -f http://localhost:8080/health || exit 1
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
test:
|
|
image: golang:1.25
|
|
working_dir: /app
|
|
volumes:
|
|
- ../:/app
|
|
command: go test ./...
|
|
networks:
|
|
- garmin-net
|
|
|
|
networks:
|
|
garmin-net:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
garmin-session:
|