Hi Bob, Here is my working config. I'm not certain; but you may need to destroy your containers and recreate them at this point. I'm not sure if you will be able to just change the YAML and have the existing non-static IP containers work correctly.
cat docker-compose.yaml version: '2'
services: mailman-core: image: maxking/mailman-core:0.3 container_name: mailman-core hostname: mailman-core restart: always volumes: - /opt/mailman/core:/opt/mailman/ links: - database:database depends_on: - database environment: - DATABASE_URL=mysql+pymysql://mailman:[redacted]@database/mailmandb?charset=u tf8mb4&use_unicode=1 - DATABASE_TYPE=mysql - DATABASE_CLASS=mailman.database.mysql.MySQLDatabase - HYPERKITTY_API_KEY=[redacted] - MTA=postfix networks: mailman: ipv4_address: 172.19.199.2
mailman-web: image: maxking/mailman-web:0.3 container_name: mailman-web hostname: mailman-web restart: always depends_on: - database links: - mailman-core:mailman-core - database:database volumes: - /opt/mailman/web:/opt/mailman-web-data environment: - DATABASE_URL=mysql://mailman: [redacted]@database/mailmandb - DATABASE_TYPE=mysql - HYPERKITTY_API_KEY=[redacted] - SECRET_KEY=[redacted] - DYLD_LIBRARY_PATH=/usr/local/mysql/lib/ - SERVE_FROM_DOMAIN=[redacted] - MAILMAN_ADMIN_USER=mailmanadmin - MAILMAN_ADMIN_EMAIL=[redacted] networks: mailman: ipv4_address: 172.19.199.3
database: container_name: mailman-database environment: MYSQL_DATABASE: mailmandb MYSQL_USER: mailman MYSQL_PASSWORD: [redacted] MYSQL_RANDOM_ROOT_PASSWORD: "yes" restart: always image: mariadb:10.5 volumes: - /opt/mailman/database:/var/lib/mysql networks: mailman: ipv4_address: 172.19.199.4
networks: mailman: name: docker-mailman driver: bridge ipam: driver: default config: - subnet: 172.19.199.0/24
-----Original Message----- From: bob B <bader@cchmc.org> Sent: Wednesday, August 25, 2021 1:32 AM To: mailman-users@mailman3.org Subject: [MM3-users] Re: docker mailman-core mailman3 image not responding on port 8024
Anyone have any ideas on how to hard code IPs in docker for mailman3
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/