This commit is contained in:
@@ -20,29 +20,16 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile.test
|
||||
working_dir: /app
|
||||
networks:
|
||||
- test
|
||||
depends_on:
|
||||
- mosquitto-test
|
||||
- mosquitto
|
||||
environment:
|
||||
- MOSQUITTO_SERVER=mosquitto-test
|
||||
command: /bin/bash -xc "swift package clean && swift test"
|
||||
|
||||
mosquitto-test:
|
||||
image: eclipse-mosquitto
|
||||
networks:
|
||||
- test
|
||||
- MOSQUITTO_SERVER=mosquitto
|
||||
command: /bin/bash -xc "swift test"
|
||||
|
||||
mosquitto:
|
||||
image: eclipse-mosquitto
|
||||
volumes:
|
||||
- ./mosquitto/config:/mosquitto/config
|
||||
- ./mosquitto/certs:/mosquitto/certs
|
||||
ports:
|
||||
- "1883:1883"
|
||||
- "8883:8883"
|
||||
- "8080:8080"
|
||||
- "8081:8081"
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.mosquitto
|
||||
|
||||
networks:
|
||||
test:
|
||||
|
||||
Reference in New Issue
Block a user