services: roundcubemail: image: roundcube/roundcubemail:latest container_name: roundcubemail_2 # restart: unless-stopped depends_on: - roundcubedb_2 links: - roundcubedb_2 volumes: - ./www:/var/www/html ports: - 9001:80 environment: - ROUNDCUBEMAIL_DB_TYPE=pgsql - ROUNDCUBEMAIL_DB_HOST=roundcubedb_2 # same as pgsql container name - ROUNDCUBEMAIL_DB_NAME=roundcube # same as pgsql POSTGRES_DB env name - ROUNDCUBEMAIL_DB_USER=roundcube # same as pgsql POSTGRES_USER env name - ROUNDCUBEMAIL_DB_PASSWORD=roundcube # same as pgsql POSTGRES_PASSWORD env name - ROUNDCUBEMAIL_SKIN=elastic # # Set in custom_config.ini.php file #- ROUNDCUBEMAIL_DEFAULT_HOST=tls://mail.ctyme.com #- ROUNDCUBEMAIL_SMTP_SERVER=tls://mail.usa4freedom.org roundcubedb_2: image: postgres:alpine container_name: roundcubedb_2 # restart: unless-stopped volumes: - ./db/postgres:/var/lib/postgresql/data - ./db_backup:/var/lib/postgresql/backup environment: - POSTGRES_DB=roundcube - POSTGRES_USER=roundcube - POSTGRES_PASSWORD=roundcube