Initial commit: Docker configurations for vault and gitea
This commit is contained in:
43
HA/docker-compose.yml
Normal file
43
HA/docker-compose.yml
Normal file
@@ -0,0 +1,43 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
homeassistant:
|
||||
container_name: homeassistant
|
||||
image: ghcr.io/home-assistant/home-assistant:stable
|
||||
restart: unless-stopped
|
||||
privileged: true
|
||||
volumes:
|
||||
- ./config:/config
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /run/dbus:/run/dbus:ro
|
||||
expose:
|
||||
- "8123"
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
networks:
|
||||
- caddy-network
|
||||
depends_on:
|
||||
- homeassistant-db
|
||||
|
||||
homeassistant-db:
|
||||
container_name: homeassistant-db
|
||||
image: postgres:15
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: homeassistant
|
||||
POSTGRES_USER: homeassistant
|
||||
POSTGRES_PASSWORD: homeassistant_password
|
||||
volumes:
|
||||
- ./db_data:/var/lib/postgresql/data
|
||||
expose:
|
||||
- "5432"
|
||||
networks:
|
||||
- caddy-network
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
|
||||
networks:
|
||||
caddy-network:
|
||||
external: true
|
||||
name: caddy_caddy-network
|
||||
Reference in New Issue
Block a user