docker-rpi/home-assistant/home-assistant.yaml
Maciej Krok 89b0043bc9 port puvlished
master
2020-03-20 15:57:37 +01:00

25 lines
420 B
YAML

version: '3.4'
services:
database:
image: postgres:12
ports:
- target: 5432
published: ${DBPORT}
protocol: tcp
mode: host
volumes:
- dbdata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${DBUSER}
- POSTGRES_PASSWORD=${DBPASS}
- POSTGRES_DB=${DBUSER}
- TZ=Europe/Warsaw
volumes:
dbdata:
### Environment variables
# DBUSER
# DBPASS
# DBPORT