From 8731836e3ed9d980eb08a109450e45c448745eeb Mon Sep 17 00:00:00 2001 From: Skydiver84de Date: Wed, 19 Oct 2022 17:37:41 +0200 Subject: [PATCH] Update u_e-docker-cust_dockerfiles.en.md --- .../Docker/u_e-docker-cust_dockerfiles.en.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/docs/manual-guides/Docker/u_e-docker-cust_dockerfiles.en.md b/docs/manual-guides/Docker/u_e-docker-cust_dockerfiles.en.md index 3956afb64..8ee15a75f 100644 --- a/docs/manual-guides/Docker/u_e-docker-cust_dockerfiles.en.md +++ b/docs/manual-guides/Docker/u_e-docker-cust_dockerfiles.en.md @@ -4,14 +4,23 @@ You need to copy the override file with corresponding build tags to the mailcow: cp helper-scripts/docker-compose.override.yml.d/BUILD_FLAGS/docker-compose.override.yml docker-compose.override.yml ``` -Make your changes in `data/Dockerfiles/$service` and build the image locally: +Customize `data/Dockerfiles/$service` and build the image locally: ``` -docker build data/Dockerfiles/service -t mailcow/$service +docker build data/Dockerfiles/$service -t mailcow/$service:$tag +``` +(without a personalized :$tag docker will use :latest automatically) + + +Now the created image has to be activated in docker-compose.override.yml, e.g.: +``` +$service-mailcow: + build: ./data/Dockerfiles/$service + image: mailcow/$service:$tag ``` Now auto-recreate modified containers: ``` docker compose up -d -``` \ No newline at end of file +```