Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker auto-update #458

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docker-compose.autoupdate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3.7'
services:
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 60 prem_app premd dnsd authd controllerd
prem_app:
image: ghcr.io/premai-io/prem-app:latest
premd:
image: ghcr.io/premai-io/premd:latest
14 changes: 7 additions & 7 deletions docker-compose.gateway.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
version: '3.7'
services:

premapp:
container_name: premapp
prem_app:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you elaborate on why this is necessary?

Copy link
Contributor Author

@casperdcl casperdcl Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just using the same convention as the base docker-compose.yml file :)

alternatively would have to get watchtower to monitor both premapp and prem_app

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh ok, I think this docker-compose may be outdated and not really used for dev or prod either AFAIK

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well I use it for dev. @filopedraz shouldn't we use it for demo.prem.ninja too?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this service belongs to the actual server installation for production, you premapp is the one used in the compose

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@casperdcl I am using prem-box installer script for demo.prem.ninja :)

container_name: prem_app
build: .
environment:
- VITE_DESTINATION=browser
- VITE_IS_PACKAGED=true
- VITE_PROXY_ENABLED=true
labels:
- "traefik.enable=true"
- "traefik.http.routers.premapp-http.rule=PathPrefix(`/`)"
- "traefik.http.routers.premapp-http.entrypoints=web"
- "traefik.http.services.premapp.loadbalancer.server.port=8080"
- "traefik.http.routers.prem_app-http.rule=PathPrefix(`/`)"
- "traefik.http.routers.prem_app-http.entrypoints=web"
- "traefik.http.services.prem_app.loadbalancer.server.port=8080"
ports:
- "8085:8080"
restart: unless-stopped
Expand Down Expand Up @@ -107,9 +107,9 @@ services:
user: root
environment:
LETSENCRYPT_PROD: false
SERVICES: premd,premapp
SERVICES: premd,prem_app
restart: unless-stopped

volumes:
dnsd-pg-data:
traefik-letsencrypt:
traefik-letsencrypt: