boelle
(Bo Herrmannsen)
29 July 2023 09:46
1
i know there are Emoncms Docker...run Emoncms on your machine in 4 commands!
that seems to still have something on the todo list thou, and it deals with the command line too that i’m not a fan of since there is not much ui control
i was wonderin if anybody has done it via portainer?
for esphome i did this to make a “stack”:
version: '3'
services:
esphome:
container_name: esphome
image: ghcr.io/esphome/esphome
volumes:
- /path/to/esphome/config:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
privileged: true
ports:
- 6052:6052
network_mode: host
currently i use a combo of GitHub - sprintcube/docker-compose-lamp: A basic LAMP stack environment built using Docker Compose. and adding emoncms to that, but that one is kind of messy too and no control from portainer either
boelle
(Bo Herrmannsen)
31 July 2023 09:06
2
@TrystanLea @glyn.hudson
is the stack file i provided the same as docker-compose.yml ?
# Base docker compose, added to by docker-compose.override or docker-compose.prod. See Readme.md
version: '2'
services:
# PHP & apache container using offical Docker PHP iamge
web:
# If pre-built image from docker hub exists then use that (docker pull openenergymonitor/emoncms:latest) if not build container see web/Dockerflile
image: openenergymonitor/emoncms:latest
build: web/.
volumes:
# mount docker volumes persistant inside docker container
- emon-phpfina:/var/opt/emoncms/phpfina
- emon-phptimeseries:/var/opt/emoncms/phptimeseries
links:
- db
- redis
- mqtt
db:
This file has been truncated. show original
or do i miss something?
boelle
(Bo Herrmannsen)
31 July 2023 10:15
3
so no that was not the case
Sorry Bo, Im struggling to follow what you are doing above
What is the stack file? Im probably not familiar enough with stacks to help…
boelle
(Bo Herrmannsen)
10 August 2023 07:36
5
stack file is prob the wrong term, but its the text you insert in portainer to deploy the stack
in the above picture you just enter a name, then in the text box insert the text
version: '3'
services:
esphome:
container_name: esphome
image: ghcr.io/esphome/esphome
volumes:
- /path/to/esphome/config:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
privileged: true
ports:
- 6052:6052
network_mode: host
and hit deploy and after a while i have esphome running to compile firmware for my esphome devices
makes it dead simple for os NOOP’s to lunch something and there is no command line work