switched to docker-compose to make a named volume for the appdaemon data

This commit is contained in:
John Lancaster
2023-04-26 00:07:22 -05:00
parent c64a1f1a0a
commit 6fd87f1910
2 changed files with 20 additions and 11 deletions

20
docker-compose.yml Normal file
View File

@@ -0,0 +1,20 @@
version: "3.8"
services:
appdaemon:
container_name: appdaemon
image: acockburn/appdaemon:dev
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- appdaemon-data:/conf
ports:
- 5050:5050
restart: unless-stopped
volumes:
appdaemon-data:
driver: local
driver_opts:
o: bind
type: none
device: /home/docker/appdaemon

View File

@@ -1,11 +0,0 @@
#!/bin/bash
docker run -it \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/timezone:/etc/timezone:ro \
-v /home/docker/appdaemon:/conf \
-p 5050:5050 \
--name appdaemon \
--restart unless-stopped \
-d \
acockburn/appdaemon:dev