You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
web:
|
|
|
|
image: "amikhalev/sprinklers3:dev"
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.dev
|
|
|
|
depends_on:
|
|
|
|
- database
|
|
|
|
- mosquitto
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
- "8081:8081"
|
|
|
|
volumes:
|
|
|
|
- ./client:/app/client
|
|
|
|
- ./common:/app/common
|
|
|
|
- ./server:/app/server
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
environment:
|
|
|
|
- PORT=8080
|
|
|
|
- TYPEORM_CONNECTION=postgres
|
|
|
|
- TYPEORM_HOST=database
|
|
|
|
- TYPEORM_DATABASE=postgres
|
|
|
|
- TYPEORM_USERNAME=postgres
|
|
|
|
- TYPEORM_PASSWORD=8JN4w0UsN5dbjMjNvPe452P2yYOqg5PV
|
|
|
|
- MQTT_URL=tcp://mosquitto:1883
|
|
|
|
# Must specify JWT_SECRET and MQTT_URL
|
|
|
|
|
|
|
|
mosquitto:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.mosquitto
|
|
|
|
ports:
|
|
|
|
- "1883:1883"
|
|
|
|
|
|
|
|
database:
|
|
|
|
image: "postgres:11-alpine"
|
|
|
|
ports:
|
|
|
|
- "5432:5432"
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=8JN4w0UsN5dbjMjNvPe452P2yYOqg5PV
|