Production of composite tanks