2022-02-02 12:23:46 +01:00
|
|
|
You need to copy the override file with corresponding build tags to the mailcow: dockerized root folder (i.e. `/opt/mailcow-dockerized`):
|
|
|
|
|
|
|
|
```
|
2022-09-01 09:33:47 +02:00
|
|
|
cp helper-scripts/docker-compose.override.yml.d/BUILD_FLAGS/docker-compose.override.yml docker-compose.override.yml
|
2022-02-02 12:23:46 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
|
2022-10-19 17:37:41 +02:00
|
|
|
Customize `data/Dockerfiles/$service` and build the image locally:
|
2022-02-02 12:23:46 +01:00
|
|
|
```
|
2022-10-19 17:37:41 +02:00
|
|
|
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
|
2022-02-02 12:23:46 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
Now auto-recreate modified containers:
|
|
|
|
|
|
|
|
```
|
2022-08-31 14:45:46 +02:00
|
|
|
docker compose up -d
|
2022-10-19 17:37:41 +02:00
|
|
|
```
|