docker-compose.yml 458 B

1234567891011121314151617
  1. # ansible's docker_service module does not support compose version 3 yet
  2. # https://docs.ansible.com/ansible/latest/modules/docker_service_module.html
  3. version: '2'
  4. volumes:
  5. config:
  6. services:
  7. homeassistant:
  8. build: .
  9. image: fphammerle/home-assistant
  10. volumes: ['config:/config:rw']
  11. ports: ['127.0.0.1:8123:8123']
  12. restart: on-failure
  13. security_opt: [no-new-privileges]
  14. # https://docs.docker.com/compose/compose-file/compose-file-v2/