Files
swift-mqtt-dewpoint/docker-compose.yaml
Michael Housh 41fb3c5715
Some checks failed
CI / Run Tests (push) Failing after 12s
feat: Run CI
2024-11-14 20:44:31 -05:00

38 lines
682 B
YAML
Executable File

# run this with docker-compose run test
services:
server:
image: swift-mqtt-dewpoint:latest
restart: unless-stopped
env_file: .env
local:
container_name: local-server
build:
context: .
dockerfile: Dockerfile
depends_on:
- mosquitto
environment:
- MQTT_HOST=mosquitto
test:
build:
context: .
dockerfile: Dockerfile.test
working_dir: /app
depends_on:
- mosquitto
environment:
- MOSQUITTO_SERVER=mosquitto
command: /bin/bash -xc "swift test"
mosquitto:
build:
context: .
dockerfile: Dockerfile.mosquitto
networks:
test:
driver: bridge
external: false