You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
580 B
YAML

version: '3'
services:
app:
restart: always
build:
context: .
dockerfile: Dockerfile
ports:
- 8080:8080
environment:
MQTT: "mqtt://192.168.24.215"
DB: "mqtt://192.168.24.215"
PGHOST: "database"
PGPASSWORD: "6561284a-b277-4668-af57-3226c8ff454c"
PGUSER: "postgres"
depends_on:
- database
database:
image: postgres:alpine
restart: always
environment:
POSTGRES_PASSWORD: 6561284a-b277-4668-af57-3226c8ff454c
volumes:
- postgres:/var/lib/postgresql/data
volumes:
postgres: