sprinklers3/docker-compose.dev.yml

44 lines
966 B
YAML
Raw Normal View History

2018-07-25 13:50:31 -06:00
version: "3"
services:
web:
image: "amikhalev/sprinklers3:dev"
build:
context: .
dockerfile: Dockerfile.dev
depends_on:
- database
2018-08-28 05:34:23 -06:00
- mosquitto
2018-07-25 13:50:31 -06:00
ports:
- "8080:8080"
- "8081:8081"
volumes:
2018-08-07 21:21:26 +03:00
- ./client:/app/client
2018-07-25 13:50:31 -06:00
- ./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
- TYPEORM_SYNCHRONIZE=true
2018-08-28 05:34:23 -06:00
- MQTT_URL=tcp://mosquitto:1883
2018-07-25 13:50:31 -06:00
# Must specify JWT_SECRET and MQTT_URL
2018-08-28 05:34:23 -06:00
mosquitto:
build:
context: .
dockerfile: Dockerfile.mosquitto
ports:
- "1883:1883"
2018-07-25 13:50:31 -06:00
database:
image: "postgres:11-alpine"
2018-08-28 05:34:23 -06:00
ports:
- "5432:5432"
2018-07-25 13:50:31 -06:00
environment:
2018-09-02 02:57:55 -06:00
- POSTGRES_PASSWORD=8JN4w0UsN5dbjMjNvPe452P2yYOqg5PV