mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-18 08:36:13 +00:00
See https://go.dev/doc/devel/release#go1.26.3 and https://groups.google.com/g/golang-dev/c/h6eZjndBMqQ
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
services:
|
|
soundtouch-service:
|
|
build:
|
|
context: .
|
|
target: soundtouch-service
|
|
networks:
|
|
- soundtouch-test-net
|
|
volumes:
|
|
- ./tests/integration/testdata:/app/data
|
|
environment:
|
|
- SPOTIFY_CLIENT_ID=mock-id
|
|
- SPOTIFY_CLIENT_SECRET=mock-secret
|
|
- SPOTIFY_TOKEN_URL=http://spotify-mock:8080/api/token
|
|
- SPOTIFY_API_BASE=http://spotify-mock:8080
|
|
- AMAZON_CLIENT_ID=mock-amazon-id
|
|
- AMAZON_CLIENT_SECRET=mock-amazon-secret
|
|
- AMAZON_TOKEN_URL=http://amazon-mock:8080/auth/o2/token
|
|
- AMAZON_PROFILE_URL=http://amazon-mock:8080/user/profile
|
|
|
|
spotify-mock:
|
|
image: golang:1.26.3-alpine
|
|
container_name: spotify-mock
|
|
working_dir: /app
|
|
volumes:
|
|
- .:/app
|
|
command: go run ./cmd/mock-spotify/main.go -port 8080
|
|
ports:
|
|
- "8081:8080"
|
|
networks:
|
|
- soundtouch-test-net
|
|
|
|
amazon-mock:
|
|
image: golang:1.26.3-alpine
|
|
container_name: amazon-mock
|
|
working_dir: /app
|
|
volumes:
|
|
- .:/app
|
|
command: go run ./cmd/mock-amazon/main.go -port 8080
|
|
ports:
|
|
- "8082:8080"
|
|
networks:
|
|
- soundtouch-test-net
|
|
|
|
networks:
|
|
soundtouch-test-net:
|
|
name: soundtouch-test-net
|