Private build on DSM (no registry); drop Docker Hub
This commit is contained in:
@@ -40,8 +40,10 @@ container on DSM (network `bridge_hoelee`, reaches NocoDB at `http://nocodb:1038
|
||||
|
||||
## Build / deploy
|
||||
|
||||
Private build on DSM — NO registry (do not push to Docker Hub):
|
||||
|
||||
```bash
|
||||
docker build -t hoelee/carousell-monitor:latest .
|
||||
docker push hoelee/carousell-monitor:latest
|
||||
# then Portainer stack from /volume1/docker/carousell-monitor/docker-compose.yml
|
||||
# on DSM (repo cloned to /volume1/docker/carousell-monitor)
|
||||
cd /volume1/docker/carousell-monitor
|
||||
sudo docker compose up -d --build
|
||||
```
|
||||
|
||||
@@ -39,9 +39,15 @@ docker compose up -d
|
||||
|
||||
## Deploy (DSM via Portainer)
|
||||
|
||||
Image pushed to Docker Hub `hoelee/carousell-monitor:latest`; the compose at
|
||||
`/volume1/docker/carousell-monitor` is deployed as a Portainer stack with the
|
||||
secrets passed as stack environment variables.
|
||||
Private build — no registry. The compose at `/volume1/docker/carousell-monitor`
|
||||
is cloned from Gitea and built on DSM (`build: .`), then deployed as a Portainer
|
||||
stack with the secrets passed as stack environment variables.
|
||||
|
||||
```bash
|
||||
# on DSM
|
||||
cd /volume1/docker/carousell-monitor
|
||||
sudo docker compose up -d --build
|
||||
```
|
||||
|
||||
## Files
|
||||
|
||||
|
||||
+2
-1
@@ -5,7 +5,8 @@
|
||||
|
||||
services:
|
||||
carousell-monitor:
|
||||
image: hoelee/carousell-monitor:latest
|
||||
build: .
|
||||
image: carousell-monitor:latest
|
||||
container_name: carousell-monitor
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user