Zimbra - Docker-Compose loop

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
Post Reply
annahernandez99
Posts: 5
Joined: Tue Jan 05, 2021 6:37 am

Zimbra - Docker-Compose loop

Post by annahernandez99 »

I have a Zimbra email server I'm running in docker. I created it with docker-compose with some local volumes so I can back the whole thing up. I got it all up and working, and to test I rebuilt the container, but during the install process it gets stuck. Here is a copy of the docker-compose.yaml file.

version: "3.3"
services:
zimbra:
image: jorgedlcruz/zimbra
container_name: zimbra
hostname: fake.domain.com
environment:
- TZ=${TZ}
ports:
- 25:25
- 80:80
- 465:465
- 587:587
- 110:110
- 143:143
- 993:993
- 995:995
- 443:443
- 8080:8080
- 8443:8443
- 7071:7071
- 9071:9071
- 389:389
- 636:636
- 5222:5222
- 5223:5223
- 5269:5269
dns:
- 127.0.0.1
- 8.8.8.8
environment:
PASSWORD: ********
networks:
default:
ipv4_address: 192.168.226.13
restart: always
volumes:
- '/etc/docker/zimbra/data:/opt/zimbra'

networks:
default:
external:
name: pub_net
volumes:
zimbra_data:
driver: local
The rebuild starts, and the container detects that an install already exists. At which point the log displays this over and over:

The system will be modified. Continue? [N] Exit? [N] The system will be modified. Continue? [N] Exit? [N] The system will be modified. Continue? [N] Exit? [N] The system will be modified. Continue? [N] Exit? [N] The system will be modified. Continue? [N] Exit? [N] The system will be modified. Continue? [N] Exit? [N] The system will be modified. Continue? [N] Exit? [N] The system will be modified. Continue? [N] Exit? [N]

I have to force the container down to stop it. Does anyone know how I can let the container know that I am okay with changes being made so that the process can continue?
User avatar
barrydegraaff
Zimbra Employee
Zimbra Employee
Posts: 242
Joined: Tue Jun 17, 2014 3:31 am
Contact:

Re: Zimbra - Docker-Compose loop

Post by barrydegraaff »

The Zimbra image you use, is not maintained, and Zimbra (from the downloads page) is not supported to run in Docker.

If you really want to do this, try and compile from source from https://github.com/Zimbra/zm-build
--
Barry de Graaff
Email: barry.degraaff [at] synacor [dot] com
Admin of Zimbra-Community Github: https://github.com/orgs/Zimbra-Community/ and the
Zimlet Gallery https://gallery.zetalliance.org/extend/
Post Reply