feat(compose): Work with a registry
This commit is contained in:
@@ -39,7 +39,7 @@ docker compose --project-name "${COMPOSE_PROJECT}" --file "${COMPOSE_FILE}" --en
|
||||
|
||||
## Copy to target
|
||||
|
||||
Copy images to target Docker host, that is assuming you deploy to a machine that itself has no network route to reach Docker Hub. Copying in its simplest form involves a local `docker save` and a remote `docker load`. Consider the helper mini-project [quico.space/Quico/copy-docker](https://quico.space/Quico/copy-docker) where [copy-docker.sh](https://quico.space/Quico/copy-docker/src/branch/main/copy-docker.sh) allows the following workflow:
|
||||
Copy images to target Docker host, that is assuming you deploy to a machine that itself has no network route to reach Docker Hub or your private registry of choice. Copying in its simplest form involves a local `docker save` and a remote `docker load`. Consider the helper mini-project [quico.space/Quico/copy-docker](https://quico.space/Quico/copy-docker) where [copy-docker.sh](https://quico.space/Quico/copy-docker/src/branch/main/copy-docker.sh) allows the following workflow:
|
||||
|
||||
```
|
||||
source "${COMPOSE_ENV}"
|
||||
|
@@ -1,5 +1,6 @@
|
||||
services:
|
||||
grafana-build:
|
||||
# FIXME image name with or without slash? Docker Hub or private registry? With or without *_BUILD_DATE? FIXME
|
||||
image: "grafana:${GRAFANA_VERSION}"
|
||||
profiles: ["build", "build-grafana"]
|
||||
build:
|
||||
@@ -9,6 +10,7 @@ services:
|
||||
EXAMPLE_ARG_FOR_DOCKERFILE: "${EXAMPLE_ARG_FROM_ENV_FILE}"
|
||||
GRAFANA_VERSION: "${GRAFANA_VERSION}"
|
||||
nginx-build:
|
||||
# FIXME image name with or without slash? Docker Hub or private registry? With or without *_BUILD_DATE? FIXME
|
||||
image: "nginx:${NGINX_VERSION}"
|
||||
profiles: ["build", "build-nginx"]
|
||||
build:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
services:
|
||||
grafana:
|
||||
# FIXME Docker Hub image name with or without slash? FIXME
|
||||
# FIXME image name with or without slash? Docker Hub or private registry? With or without *_BUILD_DATE? FIXME
|
||||
image: "grafana:${GRAFANA_VERSION}"
|
||||
container_name: "grafana-grafana-${CONTEXT}"
|
||||
networks:
|
||||
@@ -29,7 +29,7 @@ services:
|
||||
# GRAFANA_USER: ${GRAFANA_USER}
|
||||
# GRAFANA_PASSWORD: ${GRAFANA_PASSWORD}
|
||||
nginx:
|
||||
# FIXME Docker Hub image name with or without slash? FIXME
|
||||
# FIXME image name with or without slash? Docker Hub or private registry? With or without *_BUILD_DATE? FIXME
|
||||
image: "nginx:${NGINX_VERSION}"
|
||||
container_name: "grafana-nginx-${CONTEXT}"
|
||||
networks:
|
||||
|
@@ -7,6 +7,7 @@ CONTEXT=ux_vilnius
|
||||
# GRAFANA_VERSION=x.y.z
|
||||
# NGINX_VERSION=x.y.z
|
||||
# GRAFANA_VIP=10.1.1.2
|
||||
# GRAFANA_BUILD_DATE=20230731
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user